Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
EE4 creating a role to just manage Espresso Events | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium EE4 creating a role to just manage Espresso Events

EE4 creating a role to just manage Espresso Events

Posted: March 6, 2014 at 4:49 pm

Viewing 3 reply threads


standoutsites

March 6, 2014 at 4:49 pm

EE4:4.8.1reg
WP: 3.8.1

I have created a role Event Manager with the plugin User Role Editor. I have designated the following permissions (capabilities) for this role, but when the user with that role logs in, he is not able to access Espresso Events (but he sees the link only at the top of the admin tool bar). Am I missing some capability or there is a plugin conflict?:

delete_event_categories
delete_events
delete_locations
delete_others_events
delete_others_locations
delete_others_recurring_events
delete_recurring_events
edit_event_categories
edit_events
edit_locations
edit_others_events
edit_others_locations
edit_others_recurring_events
edit_recurring_events
manage_bookings
manage_others_bookings
publish_events
publish_locations
publish_recurring_events
read_others_locations
read_private_events
read_private_locations
upload_event_images


Josh

March 6, 2014 at 4:59 pm

Hi there,

This really isn’t a plugin conflict because in order to access Event Espresso menus a role management plugin would have to use an Event Espresso-specific filter:

Inside the EE_Admin_Page_Init class there is a filter hook that can be used by a plugin developer to change the defaults:

apply_filters( 'FHEE_' . $this->menu_slug . '_capability', $capability )

Where menu_slug corresponds to the menu slug for the page system (i.e. espresso_events) that affects the menu being shown.


standoutsites

March 6, 2014 at 5:06 pm

Hi Josh,

Is there a list of all Espresso Events capabilities somewhere?


Josh

March 7, 2014 at 12:33 pm

Hi there,

As far as I know, there are no Event Espresso capabilities. That said, you can use existing capabilities and allow users that have a specific capability to access a specific Event Espresso menu. For example, you can assign the ‘manage_options’ capability to a user role and use Event Espresso’s filters to grant access by writing a few functions like this:

add_filter ('FHEE_management_capability', 'my_custom_menu_management_capability');

function my_custom_menu_management_capability() {
    return 'manage_options';
}

add_filter ('FHEE_espresso_events_capability', 'my_custom_espresso_events_capability');

function my_custom_espresso_events_capability($capability){
    return 'manage_options';
}

add_filter ('FHEE_espresso_registrations_capability', 'my_custom_espresso_registrations_capability');

function my_custom_espresso_registrations_capability($capability){
    return 'manage_options';
}
Viewing 3 reply threads

The support post ‘EE4 creating a role to just manage Espresso Events’ 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 - Staging Server