WordPress.org

Forums

WP-Optimize
[resolved] Non-admins can see admin bar link (4 posts)

  1. locomo
    Member
    Posted 1 year ago #

    Hi .. what permission level should be able to see the admin bar link (when enabled)?

    I have a custom user role with similar permissions to Editor and these users can see the admin bar link.

    Is there a specific capability associated with this or does the plugin only check for standard user roles and not custom user roles?

    thanks

    http://wordpress.org/plugins/wp-optimize/

  2. ruhanirabin
    Member
    Plugin Author

    Posted 1 year ago #

    plugin just checks whether it is admin or not. ( is_admin() )

  3. locomo
    Member
    Posted 1 year ago #

    okay thanks .. FYI is_admin() only checks if the viewer is in the admin panel and not whether they have admin privileges

    would be great if the plugin did some access control to prevent non-admin users from doing database operations

  4. ruhanirabin
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah you are right about that. I should implement some access level instead. I need to get some free time first :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Optimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.