acl icon indicating copy to clipboard operation
acl copied to clipboard

Support regular expressions for privilege checks

Open em0ney opened this issue 6 years ago • 0 comments

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$/

em0ney avatar Feb 26 '18 23:02 em0ney