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

Bulk Grant Feature #30

Open
rreinhardt9 opened this issue Dec 12, 2018 · 0 comments
Open

Bulk Grant Feature #30

rreinhardt9 opened this issue Dec 12, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@rreinhardt9
Copy link
Contributor

Similar to #22 , it would be nice to be able to grant a permission in bulk.

For example, if a new feature is rolled out that many groups of actors should have enabled for them, it would be nice to say something like SomePermissionPolicy.grant_all!(companies, :a_permission).

Some potential challenges might be do we accept mixed types of actors like SomePermissionPolicy.grant_all!(groups_and_users, :a_permission) where it's a mix of Group and User actors? Or does this method accept only groups of actors of the same type for simplicity.

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