Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Priority in permissions #105

Open
Minotti opened this issue Oct 5, 2016 · 2 comments
Open

Priority in permissions #105

Minotti opened this issue Oct 5, 2016 · 2 comments

Comments

@Minotti
Copy link

Minotti commented Oct 5, 2016

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:
defender

Logged into user 14: dd(Defender::hasPermission('permission')); //output: true

What am I doing wrong?

@wemersonjanuario
Copy link

I have the same issue.

@wemersonjanuario
Copy link

Any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants