Posted: May 22, 2015 at 5:10 am
|
Hi, what would be your recommended approach to setting up a custom user role which could only access the Event Checkin section? If not possible to be so granular, it would be ok to allow access to the events and registrations (but not event admin). I’ve had a look at some plugins, like Adminimize, User Role Editor, but none really fit for this purpose (though I could probably combine the two) – in any case, is there a way you’d recommend achieving this? Thanks |
Hi Chris, A ‘role’ is basically preset collection of capabilities, for example I could have an account on your site with the role of Administrator, but if my account was edited to have the same capabilities as the subscriber role then I can only access what the subscriber role can. Roles are easier ways to assign a user with the capabilities they need, the capabilities are grants access. Its not quite as clean cut as that with WordPress as you can check for specific roles so that certain role types can access certain functions etc, but you get the idea and capabilites are what EE checks for. So having said that, you want a role that can only access the Event Checkin section and nothing else? (not use EE but non of the WP Admin) Should this user be able to check-in/out users for all events or only specific events? (I’m not sure if the latter is currently possible but will investigate) |
|
|
Hi Tony, Thanks for the reply. Ideally I’d be able to set it up so the user logs in and all the see in admin is the Check In section, bit this would be for all events not just a single one. However, it’s not a great problem if they are able to view everything within Event Espresso -> Registrations, I’d be happy with that. I’d hoped to just use Adminimize to hide all the WordPress admin menu options apart from Event Espresso -> Registrations, however, when I tried this using an Editor role, the Event Espresso menu wasn’t displayed at all – perhaps an editor role by default doesn’t have sufficient permissions to view Event Espresso in admin? If I have to create a custom role, based on the Administrator role, in order to hide all menu options bar Event Espresso, then that’s not a problem – I was just curious about how you would approach it? |
At a minimum you need the ee_read_ee & ee_read_events capabilities for EE to show. Currently only the Administrator role has these applied by default but you can assign them to any account. For example for a brand new role you can use User Role Editor to add a new role – http://take.ms/08DRU Add role of your choice – http://take.ms/Joq5y At a minimum you need ee_read_ee & ee_read_events for this new role for EE to show up at all – http://take.ms/TYcdv Create a user with that role – http://take.ms/5SLao Log into that account in a private/incognito window separate from your current login (is much easier to see the changes this way – change the caps in your admin login, refresh the incognito window to see the changes) Here is what that account can access now – http://take.ms/kyw7v Then it’s a case of adding in the capabilities you want for that role, you mentioned event check-in, so you’ll also need: ee_edit_checkin That gives the user access that looks like this – http://take.ms/pVPKf The do get access to the event LIST, and the registration LIST but can not EDIT the info. Is that what you are looking for? |
|
Also, this wiki provides some information on using the EE capabilities system: https://eventespresso.com/wiki/event-espresso-4-roles-permissions/ |
|
|
Thanks Tony for the feedback, very useful. The current live site I have is on 4.4 unfortunately so I don’t have those ee_* capabilities there, but for future sites I’ll be sure to upgrade to 4.6+. |
|
Hi Chris, We do recommend keeping your version of EE up to date: not only for great new features, but also for bug and security fixes. Let us know if there’s anything else we can help with regarding this topic, or if we can mark this as resolved. Thanks! |
The support post ‘EE4 – custom role with specific events capabilities’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.