Issue with permissions assigned via role #2766
Unanswered
joshcalloway
asked this question in
Q&A
Replies: 1 comment 2 replies
-
maybe cache problem, reset permission cache |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently hit a case where I had a user assigned to the role 'support' and the role had the 'support.manage' permission. Any time I check with
can('support.manage')
orhasPermissionTo('support.manage')
the check was always false even though the permission should be granted through the role. I eventually "fixed" it by overriding the hasPermissionViaRole function on the User model with this code but I still don't see why it was failing to start with.Beta Was this translation helpful? Give feedback.
All reactions