We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current syntax is based on building a collection of constraints via function calls:
constraint( roles(Administrator::class), can(*ALL_CAPABILITIES) ), constraint( roles(Employee::class), can(Read, List) ), constraint( roles(Employee::class), can(Update), provided { instance, role -> role == instance.employee || role is Approver } ), constraint( Expense::date, roles(Employee::class), can(Read, Update), provided { instance , role -> role == instance.employee } ), constraint( Expense::review, roles(Employee::class), can(Call), provided { instance, role -> role == instance.employee } ) )```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current syntax is based on building a collection of constraints via function calls:
The text was updated successfully, but these errors were encountered: