-
Notifications
You must be signed in to change notification settings - Fork 13
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
acl: add simple role-based ACL plugin #60
Conversation
ohh, very nice. |
77f53bb
to
3bae93e
Compare
Thing to think about: what happens when you At least two ways to solve:
|
I think i'll just ignore this case. A client UI can restrict what can be removed from a user, and only allow removing roles that had been assigned directly. Host should create a new role instead if they want to remove one permission from a user but keep the rest. |
now just need to make tests work on travis 👀 👀 |
o, that did it 🎉 |
8da96f0
to
a3fc887
Compare
a3fc887
to
96568a1
Compare
Works a bit like:
Needs a few more functions:
user.(dis)allow
method that callsuw.acl.(dis)allow
And perhaps should also just put ACL roles in the main user model instead of a separate AclUser model.