WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by Daniel Klotz.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 25, 2015 at 4:53 am #5160
    Daniel Klotz
    Spectator

    Dear Syam,

    we have an issue with changing the admin menu items (based on user roles and capabilities). This feature was our main incentive for buying the pro version.

    Now, can you please direct me how to accomplish this:

    All editors should be granted access to the menu and widgets control screens. All the other menu items under “Design” should not be accessible (or at least not visible) to editors.

    What we did was this (for role “editor”):
    – set “edit_theme_options” capability, leave out all other caps for “Themes”
    – only check “Widgets” and “Menus” Items on Menu Editor

    But the “Customize” and “Header” options are still displayed.
    “Header” can be disabled in the Mneu Editor but after saving is checked again.
    “Customize” is orange (no capability) but still checked.

    Do you have any hint what might go wrong here?

    Thanks in advance!

    February 25, 2015 at 10:08 am #5171
    Syam Mohan
    Keymaster

    Hi Daniel,

    I’ll do a test myself and let you know.

    Thanks

    Syam

    February 25, 2015 at 6:40 pm #5209
    Syam Mohan
    Keymaster

    Hi Daniel,

    It looks like those menus creates their slug dynamically, it depends on the page slug where the menu object is loaded. I’m using the menu slug to identify each menu, but since these menus uses different slugs based on the page, the code just skips over them. Also one of the menus uses a “customize” non-standard capability. I believe it translates to a standard capability dynamically, but since none of the roles have the customize capability that check box never gets enabled. I’m working on a solutions.

    Thanks

    Syam

    February 26, 2015 at 1:07 am #5216
    Daniel Klotz
    Spectator

    Hey Syam,
    again: thanks for having a look at this.
    I’m glad you could reproduce this behaviour.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Role based Menu Item Control’ is closed to new replies.
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions