bouncer icon indicating copy to clipboard operation
bouncer copied to clipboard

Batch allow/disallow

Open robertoperez-digital opened this issue 2 years ago • 1 comments

Is there a way to mass allow or disallow some ability to an array of users? like

Bouncer::allow($users)->to('ability', $object)
Bouncer:: disallow($users)->to('ability', $object)

robertoperez-digital avatar Dec 29 '22 20:12 robertoperez-digital

You can do this with a role, assign the ability to the role, and you can batch assign users to the role.

lrljoe avatar Dec 31 '22 00:12 lrljoe