You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 ofGroup
andUser
actors? Or does this method accept only groups of actors of the same type for simplicity.The text was updated successfully, but these errors were encountered: