You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, I believe the defender is not obeying the hierarchy of permissions.
Look:
In Defender, there are 2 kind of permissions: User permissions and Role permissions By default, the permissions que the user inherits, are permissions of the roles That It belongs to However, always que the user pemission is set, it will take.. precedence of role permission.
$ User-> attachPermission ($ permission [
'Value' => true // true = has the permission, false = does not have the permission,
]);
But this is not happening.
Look my tables:
Logged into user 14: dd(Defender::hasPermission('permission')); //output: true
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hello guys, I believe the defender is not obeying the hierarchy of permissions.
Look:
But this is not happening.
Look my tables:
Logged into user 14:
dd(Defender::hasPermission('permission')); //output: true
What am I doing wrong?
The text was updated successfully, but these errors were encountered: