-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 Database Models, Permissions system #795
Comments
@shivamMg sounds good but How can we implement track organizers? track organizer can be responsible for few tracs |
@rafalkowalski This is something that I wanted to ask. Will the organizer (of an event) first specify what user role to assign (e.g. Track Organizer) and then specify what tracks the user must manage. If this is the case then there really doesn't seem the use of roles, since this can be managed in a simple permissions table, like so:
And to check for permission one can use e.g. |
Looks great! |
Yes, there are two kind of permissions. Both need to be implemented.
|
Child of the parent issue: #623
We first need to define correct relationships between models to make them work.
Here's a simple representation: https://wireframe.cc/azBwUN
EventUserRoles defines user-roles for Events. So it can contain e.g.:
Services include Tracks, Microlocations, Speakers, etc. The Permissions table will have Role-Service modes. e.g.
Mode is a 4 bit value (like unix modes) for CRUD (create, read, update, delete). 1110 meaning permission to create, read, update, but not delete.
This system is extendable, since new roles and their set of permissions on Services can be defined in the database, so there doesn't have to be just a Track Organizer, an Organizer, a Super Admin, etc. More roles can be added.
In the end we can create
has_perm
property for user. e.g.I've thought of implementing this.
@rafalkowalski @aditya1702 @mariobehling
What do you guys think?
Also, this is in regard to how @juslee thought of implementing it: Any user can create an event. He will automatically be the Owner (the main organizer) of the event. He can specify user roles and then associate users with them.
The text was updated successfully, but these errors were encountered: