Skip to content

Permissions in Laratrust panel don't acknowledge teams #572

@sparxooo

Description

@sparxooo
  • Laravel Version: 9.31
  • Laratrust Version: 7.1

Describe the bug
If you have teams enabled, the built-in Laratrust panel has no way of selecting a team for the permissions to apply to.

To Reproduce
Assign a permission to a user + team.

On the Roles & Permissions assignment page, edit the user.

The panel shows all permissions assigned to the user, regardless of team_id column, and when saving it will duplicate all permissions again to that user with a null team id.

What I expect to happen
I expect that if teams are enabled, that for each user you can select Global (null team id), or select per team to assign permissions.

Apologies if I have mis understood the working of this package, but I believe this is the correct behaviour (and the panel is wrong). I'd love to not have to recreate the wheel!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions