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

$user->permissions #135

Open
jammersonf opened this issue Aug 9, 2018 · 0 comments
Open

$user->permissions #135

jammersonf opened this issue Aug 9, 2018 · 0 comments

Comments

@jammersonf
Copy link

I have a user, and assign a role $user->assignRole('Admin') and in thins role, has many permissions assigned, with view_users for example

In this case, i have a user with permissions assigned by roles

On the view @can('view_users') returns false, but the user has this permission

When i use $user->permissions returns empty;
When i use $user->getAllPermissions() get my permissions

I'm doing anything wrong? How can i use the method @can for it?

Sorry for my bad english

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

No branches or pull requests

1 participant