19/05/2017 at 07:25 #3745
I’m using a plugin called ‘Booked’ for appointments. Yesterday I was configuring and testing the plugin, and everything worked fine. Today I was going to continue my work, but I can’t access the settings menu of the plugin. I get the “you are not allowed to edit…” message, even though I’m an admin.
I checked the User Role Editor for admin permissions and all the boxes for this plugin are checked.19/05/2017 at 07:33 #3747
Check if your user was granted ‘administrator’ role not a copy with other role ID.
Check if there are any unchecked capabilities at your ‘administrator’ role. I mean that administrator role should have all capabilities checked.19/05/2017 at 07:37 #3748
What do you mean with “Check if your user was granted ‘administrator’ role not a copy with other role ID?” Where can I check this?
What’s weird is that I could access everything yesterday, but can’t today (while I didn’t change any user roles).19/05/2017 at 07:40 #3749
Open “Users->User Role Editor”, select ‘Administrator’ role from the drop-down list at the top and look if a value at the circle parenthesis to the right from the “Administrator” role is “administrator”. Some plugins check access via current_user_can(‘administrator’), where ‘administrator’ is a role ID, not a role name.19/05/2017 at 07:50 #3750
Do you mean the (administrator)?
The plugin I talked about is labelled as ‘Appointments’ in the screenshot above. As you can see, all 11 boxes are checked.19/05/2017 at 07:55 #3751
Yes, I mean exactly this: ‘administrator’. So check that your user has exactly this role – via “Users” list.
Pay attention that your administrator role was granted just 218 capabilities from the total 237. I recommend you to grant all capabilities to the ‘administrator’ role without any exceptions. Just in case there are any other capability related to “Booked” plugin and could be critical at this case.19/05/2017 at 08:05 #3752
My user role is ‘beheerder’, so that should be fine?
I also added the missing capabilities (related to gravityforms) but I still can’t access the Booked plugin settings.19/05/2017 at 08:08 #3753
Can you provide me a copy of “Booked” plugin? Send dropbox or similar link to support [at-sign] role-editor.com
I will check what exactly it require to access to its Settings.19/05/2017 at 08:19 #3754
I looked at the older 1.4.6 version – it requires ‘manage_options’ for all “Appointments” menu items, including “Appointments->Settings”.
I recommend you to compare this plugin files with original copy, just in case some file was modified…19/05/2017 at 08:26 #3755
Ok, I’ve send you an email with the plugin file.19/05/2017 at 08:33 #3756
Check if administrator role has ‘edit_booked_appointments’ capability.
These capabilities are required by this plugin (menu item – capability):
Appointments – edit_booked_appointments
Pending – edit_booked_appointments
Calendars – manage_booked_options
Settings – edit_booked_appointments
What’s New? – manage_booked_options19/05/2017 at 08:42 #3757
Everything is checked:
19/05/2017 at 11:35 #3758
Is it normal that I can’t uncheck one of the boxes in the screenshot above? When I click it, it stays checked.19/05/2017 at 11:42 #3759
PS: I tried another admin login, and the problem is the same.19/05/2017 at 12:59 #3760
Yes, it’s by design: you can not revoke a capability from administrator role, you can just add a capability to it.
Is it critical for your purpose to have option “Force custom post types to use own capabilities” turned ON? If not, switch it OFF at URE’s settings page and you will get access to this plugin back.
We met the incompatibility issue here.
I suppose that “Booked” plugin defines booked_appointments custom post type capability mapping some special way. I need more time to find a workaround…
- You must be logged in to reply to this topic.