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

Teams Permissions #605

Open
luchtech opened this issue Sep 11, 2022 · 2 comments
Open

Teams Permissions #605

luchtech opened this issue Sep 11, 2022 · 2 comments

Comments

@luchtech
Copy link

Both spatie/laravel-permissions and LaraTrust have their own optional implementation of Teams Permissions. Are there any plans or ongoing works to supplement the need for Teams-based abilities?

@luchtech
Copy link
Author

Kudos to the very beautiful fluent methods! I am highly considering this as default for our projects but the team-based permission is what gives me hesitation. Hopefully, you have upcoming plans for that.

@JosephSilber
Copy link
Owner

Teams are basically the same concept as multi tenancy:

https://github.com/JosephSilber/bouncer/blob/master/readme.md#multi-tenancy

Set the team_id as the current scope, and any role/permission granted will be specific for that team. Same for checks: any checks at the gate will be specific to that team.

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

2 participants