-
Notifications
You must be signed in to change notification settings - Fork 494
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
More roles #23
Comments
ROLES
WORKFLOWFirst user (possibly the sys admin that setups osem on server) becomes Global Admin, with access to everything (incl. full access to all future conferences). Global Admin creates a new conference and assigns the role of 'Conference Admin'. Conference Admin administers the conference, has access to everything within the conference and can assign conference-specific-roles to users.
|
Conference-specific roles can be defined:
|
Hmmm, I think we can drop the overall admin role. We basically have these data sets to work on:
This makes up nicely for these roles:
I wouldn't support adding more roles through the UI. That was a stupid idea. |
What I call Global Admin seems to be what you call Conference Admin, because in what you describe Conference Admin is not an admin for a specific conference, he can create and edit any conference. That person, however, might not always be closely involved with each and every conference, hence we need someone to fully manage a specific conference, without having access to the rest of the conferences. So you suggest we totally drop cacancan? (cancan is there already, but is not being active anymore, so we would simply switch to cancancan, which is the same as cancan, but is active) |
I am for cancancan as it is way flexible |
https://github.com/CanCanCommunity/cancancan is way more supported then |
Nope a conference admin can create a conference and edit it, including giving roles to other people. But only in the scope of the conference he created. We can also use cancancan, I don't mind :) |
Are you suggesting we allow for any user, without any role, to create a new conference? |
I suggest conference admins can create conferences and assign other users all roles. User1 is the first conference admin. So I am the first user. I set up oSC15 and assign you the role of conference admin. Now you can edit oSC15 and also create MyConf. If you create MyConf I can't edit it, unless you make me conference admin of this conference. |
OK I am confused. Conference admin will be a conference-specific role, which would mean that for someone to be a conference admin, there would have to be a conference first, for which they are an admin. |
Conference admin is just a role. It can be scoped or not. The rest is authorization. Maybe the rolify examples help you to understand why I mean? |
|
What I had in mind was to seed the database with the roles we want (just like we do now): If you want to assign a role you get to choose from these roles. So for the conference specific roles we should assign the roles in lowercase and substituting spaces with underscore. That would allow us to use the unscoped role (for instance 'Organizer') to allow users with role 'Organizer' to create a new conference too. But that's exactly what you are opposed to @ancorgs, right? |
That's exactly what I proposed yes ;-) |
Should we completely rework the event_users concept and make submitter and speaker 2 roles instead of having the 'event_users' table? Obviously 'submitter' role will be assigned directly to the user creating a new proposal. |
So do you think we should try and implement the custom roles as @ancorgs described? I am in a good place with cancancan and authorization and I would like to rework the role assignment, but it is vital to know if we will simply stick to the pre-selected roles we seed or if we will allow for new roles to be entered (along with their abilities). |
Regarding the event users. Why do we need roles at all for that? I don't see that we gain anything but complexity from this. An Event has_many Users. That's all we need IMHO. E.g. #332 |
Regarding custom roles: Please don't. OSEM is complex enough. No need to make it even more complex. |
In fact, I didn't suggest custom roles. I was discouraging mixing custom roles (in case it's decided that they are needed) with non-custom (meaningful and enforced) roles. I don't think we need custom roles right now, but my opinion is not relevant in that matter because I have not used the tool extensively enough. @differentreality, could you please provide examples in which custom roles are necessary enough to justify its implementation? |
Implemented in #441 |
Pull in changes from golden repo
Currently we have the roles
But there are other roles for events too, like
These roles are also not configurable from the app (only from the seeds file). An Admin should be able to setup more roles from the UI. Roles also don't have a description. What is the difference between Admins and Organizers? This should be clear. Also roles are global and not per event.
The text was updated successfully, but these errors were encountered: