Support

Home Forums Event Espresso Premium ERROR: You do not have access to this route

ERROR: You do not have access to this route

Posted: April 6, 2015 at 11:00 am

Viewing 5 reply threads


Randi

April 6, 2015 at 11:00 am

We’ve recently upgraded Event Espresso from 4.4.8.p to 4.6.18.p

After the upgrade, Users attempting to access anything in the Event Espresso menu gets the following error:

You do not have access to this route.

Accounts with Administator role do NOT get this error.

The site requires that users that can do event management not require administrative access.

We got around this earlier using the following WP Hook:
add_filter (‘FHEE_management_capability’, function() { return ‘edit_posts’; } );

Initially, this did not work, but Josh pointed out that the users need the “manage_options” capability, which resolved the issue after granting the capability to the editor role.

This is the support thread for this:
https://eventespresso.com/topic/ee4-permissions-wp-capabilities/

The upgrade was performed by deactivating the old version (4.4.8.p) of espresso and unzipping the new release (4.6.18.p). When the new version was activated, the 2 upgrade passes were run in the maintenance area. There were no issues reported.

The site is a single WP installation. The only plugins on the site are Event Espresso, Event Espresso Calendar (3.2.1.p), WordPress SEO, Google Analytices by Yoast, Login Lockdown, Akismet & User Role Editor (which was activated to add the manage_options capability to the editor role and then deactivated). All of the non-Espresso plugins were deactivated and the problem was not resolved.

I also tried resetting the Event Espresso Capabilities in maintenance to no avail.

Has anything changed in EE relevant to permissioning between 4.4.8p & the current version?

Thanks.


Randi

April 6, 2015 at 11:02 am

Also, by users in the previous message, I mean users with WP Editor Role (enhanced with manage_options capability).


Lorenzo Orlando Caum

  • Support Staff

April 6, 2015 at 11:11 am

Hi, are you adding the manage options back to the role after running the reset of the capabilities via the Maintenance Screen for Event Espresso?


Lorenzo


Randi

April 6, 2015 at 11:16 am

managed_options was there before and after the capability reset for the Editor Role.


Randi

April 6, 2015 at 11:57 am

I do see that there are 376 ee_ prefixed capabilities in the wp_options table, which are granted, by default, to the Administrator role.

I assume there is a much simpler method grant full access of these capabilities to a WP User/Role than manually granting each of them. It seems that is the intention of the FHEE_management_capability hook?


Josh

  • Support Staff

April 10, 2015 at 3:18 pm

Hi Randi,

A very simple method that you can use to grant full access to a specific user role is download and install the User Role Editor plugin, go in and edit the role you want to grant access to.

Then 1) input ee_ into the Quick filter field, then 2) click “Select All” and click “Update”.

The role will now have all Event Espresso capabilities, and it’s no longer required that they have the manage_options capability.

Viewing 5 reply threads

The support post ‘ERROR: You do not have access to this route’ 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