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

Has there been any updates made to granting a role for a specific model? #659

Open
LeydianeAlves opened this issue Sep 13, 2024 · 1 comment

Comments

@LeydianeAlves
Copy link

HI, thanks for providing this package!

I was wondering if the feature for granting a role only for a given model or record is still a work in progress?

In my case, I’m looking to restrict a role to a specific organisation, and the restricted_to_id and restricted_to_type columns seem perfect for that. I already have a set of roles in use, so I’d prefer not to re-create them as organisation-specific roles.

If you need any help with completing this feature, I’d be happy to contribute. Alternatively, if you're able to share an estimated timeline for its completion, I’d appreciate that too.

@lrljoe
Copy link

lrljoe commented Oct 27, 2024

Assigning a role to a user, only for a Model?

You can certainly assign an Ability for a User for a Model.

Alternatively, you could use the "Owns" approach?

Or

You could use the Scope approach.

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