-
Notifications
You must be signed in to change notification settings - Fork 49
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
Implement $lock->clear() method? #6
Comments
Perhaps for a future release. Gonna leave this open for now. |
I can see that being pretty useful. During testing, I find myself having to run a migrate:refresh --seed to get a blank slate, so I can see exactly what changed when I set permissions. |
@cegrif01 that's something I'd recommend doing every time anyway in your PHPUnit I think the |
+1 This make really sense ! In my case, I would like to be able to remove explicit permission (deny/allow) of a caller and let the roles (inherited by him) determine if he can perform an action on a resource |
This has now been added in #41. Docs update and new release coming soon. |
Would it make sense to implement a
clear
method for a lock instance to clear any matching permissions, either privileges or restrictions? This could be an easy way to clear permissions to get a fresh start. But I'm not sure if it would be very useful for many people.The api would be:
Thoughts?
The text was updated successfully, but these errors were encountered: