Skip to content

$user->permissions #135

@jammersonf

Description

@jammersonf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions