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

Create a way to tell what level a given record as a permission from #37

Open
rreinhardt9 opened this issue Sep 10, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@rreinhardt9
Copy link
Contributor

I'm not sure exactly what it would look like yet, or how much is gem logic vs business logic, but as we use the library it can become confusing when trying to figure out what "level" a specific permission has been granted at.

For example, if I have users, users are in groups and are also in "accounts". I've set up Accessly so that users can have permission either individually, through their groups, or through their account. If I set a permission at the group level, the user will now also return true for that permission. But, there is no good way for me to know what type of record (group) or WHICH group the permission has been granted through that is giving this user that permission.

It could be potentially really helpful to be able to figure out not only if the user has permission, but where that have that permission from? Individually? Through another record? Which other record?

What are some ideas on what this API could look like?

@rreinhardt9 rreinhardt9 added the enhancement New feature or request label Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant