User role check returns false while user has the role #2348
Answered
by
parallels999
mohamedds-12
asked this question in
Q&A
-
If I enabled eager loading of the roles relation in the user model : protected $with= ['roles']; When I check if a user has a role or check if he has permission via a role that's assigned to him it returns false. |
Beta Was this translation helpful? Give feedback.
Answered by
parallels999
Mar 7, 2023
Replies: 1 comment 3 replies
-
are you using teams? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mohamedds-12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
are you using teams?
let the role relationship be handled by the package