Permissions work in local but not on the server. #2644
-
Hello. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You said |
Beta Was this translation helpful? Give feedback.
-
Hello. |
Beta Was this translation helpful? Give feedback.
-
You said |
Beta Was this translation helpful? Give feedback.
@can
uses Laravel'sauth
middleware to check whether the user has the specifiedpermission
. Doesn't check roles, only permissions assigned TO those roles.You said
getRoleNames()
reports roles for the user. Great. But do those roles have any permissions assigned to them? And do they match the guard_name that the user is logged in via?