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
Hello guys, I believe the defender is not obeying the hierarchy of permissions.
Look:
But this is not happening.
Look my tables:![defender](https://cloud.githubusercontent.com/assets/17681478/19127452/07fbc1b0-8b0d-11e6-8665-7e823e79f789.png)
Logged into user 14:
dd(Defender::hasPermission('permission')); //output: true
What am I doing wrong?