Support » Plugin: Easy Heads Up Bar » Permissions for non-admins

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Greenweb

    (@greenweb)

    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.

    Thanks!

    Daniel J. Lewis

    (@djosephdesign)

    Thanks, but this didn’t work. The menu item isn’t visible to an editor.

    Plugin Author Greenweb

    (@greenweb)

    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')

    Daniel J. Lewis

    (@djosephdesign)

    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.

    Plugin Author Greenweb

    (@greenweb)

    DJosephDesign thanks mate you rock – I hope the next guy reads all the way down the thread. Cheers!

    Daniel J. Lewis

    (@djosephdesign)

    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.

    Plugin Author Greenweb

    (@greenweb)

    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

    Daniel J. Lewis

    (@djosephdesign)

    That works! Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Permissions for non-admins’ is closed to new replies.