Permissions for non-admins
-
How can I make this plugin work for editors or other user roles? I need to allow non-admins to implement the Heads Up Bar.
-
Hi there, Thank you for the question. Currently there is no way to change this within the plugins or WordPress’s settings.
You can editing the plugin itself to get it to do what you need.
Download the plugin and open up the lib.php file in a text editor or whatever you use.
Search for: (you will find 3 of them)
!current_user_can('manage_options')
And replace with:
!current_user_can('edit_post')In the Next release – due before the end of March I will (thanks to your post) add a permissions setting to the plugin.
Post here if this works for you and I’ll mark the topic resolved.- If you like the plugin please rate and review it: http://wordpress.org/support/view/plugin-reviews/easy-heads-up-bar
- See the codex for more info on this function: http://codex.wordpress.org/Function_Reference/current_user_can
Thanks!
Thanks, but this didn’t work. The menu item isn’t visible to an editor.
DJosephDesign – so sorry I had a typo this is what it should be and I have tested it to confirm it works.
!current_user_can('edit_posts')That wasn’t enough, but then I scrolled up and saw “administrator” under the function ehu_options_pages(). Changing those to to “editor” fixed it.
DJosephDesign thanks mate you rock – I hope the next guy reads all the way down the thread. Cheers!
Yikes. No, I’m sorry. This is broken again. These changes make the admin interface visible to only whatever level is in the function ehu_options_pages(). So when I changed it to editor, the admin can’t see it.
DJosephDesign I have modified and tested the script with both Admin and Editors – works – here is the link. Just download and install. And if you have the time give us a review 🙂 http://wordpress.org/support/view/plugin-reviews/easy-heads-up-bar
That works! Thank you.
The topic ‘Permissions for non-admins’ is closed to new replies.