WordPress.org

Ready to get started?Download WordPress

Forums

Admin Menu Editor
Role Capabilities changes aren't working for several sidebar items (8 posts)

  1. sunstardave
    Member
    Posted 2 years ago #

    Hi.

    The title pretty much says it all. I have tried on several installs of WP and for what ever reason, can't get some of the sidebar item to hide for Editor role users.

    I am changing the "Required capability" to Administrator for as an example of one of the 'problem' menu items "Links" and "Portfolio" (which is part of the theme framework I'm using) and and saving the changes and they are still there.

    Any help would be appreciated as I'm interested in purchasing the Pro version but am reluctant until I know it's likely to actually work.

    Thanks,
    David

    http://wordpress.org/extend/plugins/admin-menu-editor/

  2. birken
    Member
    Posted 2 years ago #

    same for me i need to know if it works? otherwise it is useless plugin!

  3. sunstardave
    Member
    Posted 2 years ago #

    It seems that we might be waiting quite some time for help birken.

    I have found another plugin that performs many of the functions of the Admin Role Editor plugin (though not to quite the same granular level) plus a few other features that I've found very useful. It's called, AG Custom Admin (http://wordpress.org/extend/plugins/ag-custom-admin/). Though not entirely bug free, it generally works very well and the author is REALLY helpful.

    Good luck.

  4. birken
    Member
    Posted 2 years ago #

    i will try that one thx sunstardave :)

  5. birken
    Member
    Posted 2 years ago #

    ok i find away to disbale the Post, Links eg..

    you choose Posts in left coulm of admin editor and then you change the settings in the right colum for the Post.

    i change:
    All Posts to super_admin
    Add New to super_admin
    Add New to super_admin
    Categories to super_admin
    Post Tags to super_admin

    this way it was disable from users site.

  6. sunstardave
    Member
    Posted 2 years ago #

    Hey birken.

    No problem. :o)

    Re your last message. Thanks for sharing the solution. I'll give it a shot.

    Cheers.

  7. thecorkboard
    Member
    Posted 2 years ago #

    Same here as first issue. A custom menu isn't respecting my "Administrator" required capability. My custom role, "student", doesn't have administrator capabilities but is still seeing this menu.

    -------------

    Follow up: I had to change the capabilities for both the main sidebar menu and its children to remove it from visibility from my "student" role.

  8. lucasrcosta
    Member
    Posted 1 year ago #

    Response from Jānis Elsts, the plugin developer:

    Ah, I see. This is technically not a bug, but an accurate reflection of how WordPress handles menu permissions.

    WordPress will actually ignore the capability requirements set on a top-level menu if it has any sub-menus. This is because a top-level menu will usually act as a link to the first accessible item in it's sub-menu, so it will also inherit the required capability of that sub-menu. So to hide the top-level menu, you also need to hide all of its sub-menus.

    This is something that sometimes trips up users, but I'm not sure how to implement it better.

    Regards,
    Jānis Elsts

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic