Roles are empty for users when logged in as super admin #2051
Jaydeep7248
started this conversation in
General
Replies: 1 comment
-
Make a sql debug, try this also setPermissionsTeamId(1);
$user = User::find(1);
$user->roles()->get(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When I logged in as super admin and check the other users role, it returns empty.
My super admin role is super-admin and team id is NULL, In model_has_roles, it is
role_id model_type model_id team_id
5 App\User 5 5
My super admin id is 5.
I have tried
For user id 1.
role_id model_type model_id team_id
1 App\User 1 1
It returns empty.
I have tried
but still it returns empty.
Can anyone please suggest me the correct way?
Beta Was this translation helpful? Give feedback.
All reactions