Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support regular expressions for privilege checks #3

Open
em0ney opened this issue Feb 26, 2018 · 0 comments
Open

Support regular expressions for privilege checks #3

em0ney opened this issue Feb 26, 2018 · 0 comments
Assignees

Comments

@em0ney
Copy link
Contributor

em0ney commented Feb 26, 2018

Would be great to be able to pass either a string or a regular expression value for the privilege argument to isAllowed.

This means that if we want to interpret read privileges over all resources, but a team resource may have multiple privilege types matching read, e.g. read, billing.read, invoices.read, one check could be employed /.read$/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants