Skip to content

Permissions work in local but not on the server. #2644

Answered by drbyte
jesusprofe asked this question in Q&A
Discussion options

You must be logged in to vote

@can uses Laravel's auth middleware to check whether the user has the specified permission. 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?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drbyte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants