Not sufficient permissions for editor role
-
Hi,
when using the editor role, WordPress is showing me an error message that the user does not have enough permissions to create or edit slideshows (while the editor role does have edit_posts capabilities). In my child theme, in the functions.php file, I added the below functions as described in one of the previous threads:
add_filter('slideshow_ck_capability', 'set_slideshow_ck_capability', 10, 1); function set_slideshow_ck_capability($cap) { $cap = 'edit_posts'; return $cap; }This only enabled the Slideshow CK menu, I can see all available slideshows, however I can not edit them. I’m using Slideshow CK Pro 1.4 and Slideshow CK Pro Addon version 1.1.2.
Could you please suggest, what could be the issue?
Best regards
-
Hi
what are you using as plugin to set up the user rights ?
try to give “manage_options” as rights to your user
CEdThanks, this worked. However, is it possible to enable it without giving the “manage_options” as rights to the user?
great
if you look at the end of the plugin file, you will find the filter function commented
try to uncomment it and see if it works with the “edit_posts”. If yes the problem comes from the code in your themeI don’t think this is a theme-related issue. I just created a localhost with a clean install of WordPress 5.2.2 with a twentysixteen child theme installed. In the functions.php file I added the below code:
add_filter('slideshow_ck_capability', 'set_slideshow_ck_capability', 10, 1); function set_slideshow_ck_capability($cap) { $cap = 'edit_posts'; return $cap; }I’m still not able to access the slideshows with the editor role. I have also tried uncommenting the code inside of the plugin (while the original twentysixteen theme was activated), and this removed the plugin entry completely from the admin and editor menu.
ok, I have found the problem. I will put an update asap
you can use the 1.4.1 version now
Thanks for the quick update! However, the Slideshow CK pro version of the plugin can’t get updated, showing a “Not Found” error after clicking update.
have you filled your license number in the plugin ?
Unfortunately, no. When I try to fill-in the license key, the loading animation shows up, and nothing happens. The console.log shows a 400 error. Could you please send me your contact e-mail? I could send you the license key, or give you access to the website.
I just tried using the license key on the clean localhost install, and I still receive a 400 error.
Hi, could you please at least provide me with the fixed plugin, or update file inside of the plugin? I’m not able to update the plugin automatically with license key due to the 400 error.
Hi,
of course, you can download it into your account here
https://www.ceikay.com/my-account/downloads/let me know
CEd
The topic ‘Not sufficient permissions for editor role’ is closed to new replies.