WordPress.org

Ready to get started?Download WordPress

Forums

Easy Heads Up Bar
[resolved] Permissions for non-admins (9 posts)

  1. Daniel J. Lewis
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/easy-heads-up-bar/

  2. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  3. Daniel J. Lewis
    Member
    Posted 1 year ago #

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

  4. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. Daniel J. Lewis
    Member
    Posted 1 year ago #

    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.

  6. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. Daniel J. Lewis
    Member
    Posted 1 year ago #

    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.

  8. Greenweb
    Member
    Plugin Author

    Posted 1 year ago #

    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

  9. Daniel J. Lewis
    Member
    Posted 1 year ago #

    That works! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic