-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature] Add hasPermissionTo to Roles model #31
Comments
My thinking is that you it's better to check the permissions of a user, instead of checking the permissions of a role. The only time you might want to retrieve the permissions is when builiding a screen to administer the permissions of a role. But then you could just loop through the permission relation on role. |
@freekmurze : just curious, what makes looping through it more of a better option then |
If you want to save using |
It will be very useful when dealing with many roles and permissions.
I would write it, but my testing skills is not good enough to make a PR.
The text was updated successfully, but these errors were encountered: