Skip to content

Add support for Teams to PermissionManager #310

@AkikiCharbel

Description

@AkikiCharbel

Can't find teams part to work with it

What I did:

created a team crud but forgot that team id will be user in model has permissions and model has roles

I expected when using setPermissionsTeamId(teamId) (spatie function) in my api to get all the permission of the user inside this team
but as i can't access model has permission and set my team id
so what's happening is that the logged in user have no permission in the team even that he was assigned to the team

i tried to create a crud for users that belongs to a team but it will be a long process to assign a permission to a user inside a team, any idea that can help or any team section in permissionManager that I don't know about it?

I'm using laravel 8 and 9, with backpack 4 and 5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions