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

Scoping Roles/Permissions #12

Open
kurucu opened this issue May 4, 2024 · 2 comments
Open

Scoping Roles/Permissions #12

kurucu opened this issue May 4, 2024 · 2 comments

Comments

@kurucu
Copy link

kurucu commented May 4, 2024

Sorry to raise an issue for this - if there's a better way, please let me know.

Any thoughts on scoping of roles to e.g. a project - so users could have different roles on different projects?

Similarly, what about scoping permissions to a specific model (e.g. updating a specific post).

@stevebauman
Copy link
Member

Hey @kurucu! Great questions.

Any thoughts on scoping of roles to e.g. a project - so users could have different roles on different projects?

This is basically like having a "team" or "company" role/permissions -- I'd be down to have this 👍

Similarly, what about scoping permissions to a specific model (e.g. updating a specific post).

I'm not sure if this would be easily done or easily manageable. You'd have to create a new DB record for every user to store their access to the specific model (correct me if I'm wrong).

@kurucu
Copy link
Author

kurucu commented May 7, 2024

Hey @stevebauman! Thanks, and great work.

This is basically like having a "team" or "company" role/permissions -- I'd be down to have this 👍

Yep - I could have phrased that better, it's probably classic multi tenancy. I'm imagining something like the Scope attribute with the nested set package.

I'm not sure if this would be easily done or easily manageable. You'd have to create a new DB record for every user to store their access to the specific model (correct me if I'm wrong).

You're probably right. I'll have a think about what I'm after here and see a better way.

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