Support

Home Forums Event Espresso Premium EE4 – custom role with specific events capabilities

EE4 – custom role with specific events capabilities

Posted: May 22, 2015 at 5:10 am

Viewing 6 reply threads


chris lawson

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


Tony

  • Support Staff

May 22, 2015 at 6:39 am

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)


chris lawson

May 22, 2015 at 6:50 am

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?


Tony

  • Support Staff

May 22, 2015 at 7:02 am

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
(You can copy another role if you want to base this roles capabilites on another, for example Editor role)

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
(Notice Event Checkin role is selected)

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
(Almost nothing at all)

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
ee_edit_checkins
ee_read_checkin
ee_read_checkins
ee_edit_checkin
ee_edit_checkins
ee_read_event
ee_read_others_events
ee_read_registration
ee_read_registrations

http://take.ms/fjFZH

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?


Tony

  • Support Staff

May 22, 2015 at 7:02 am

Also, this wiki provides some information on using the EE capabilities system:

https://eventespresso.com/wiki/event-espresso-4-roles-permissions/


chris lawson

May 23, 2015 at 3:03 am

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+.


Dean

May 25, 2015 at 4:14 am

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!

Viewing 6 reply threads

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.

Event Espresso