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

Tagged: Menu editor secondary rules

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by Syam Mohan.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 8, 2017 at 6:50 pm #52914
    Felipe Santos
    Participant

    Hello!
    Look, I’m having difficulty understanding the logic used to work with the editing of the menus when we use secondary rules.

    For example:
    Rule A: X and Y
    Rule B: Z
    Menu A: X and Y
    Menu B: Z

    User A: Only the X and Y menus appear. It works as I expected.
    User B: Only the Z menu appears. It works as I expected.
    User Ab (A is the main rule and B is the secondary rule): No menu appears! I would like the X, Y, and Z menus to appear

    In another topic you explained that to appear in the menu, in both rules the menu must be checked, but in this case above is not possible since Rule A does not have the capacity Z, and Rule B does not have the capabilities X and Y. How to proceed in this case?

    June 9, 2017 at 11:47 pm #52984
    Syam Mohan
    Keymaster

    Hi Felipe,

    Menu editor works based on ‘AND’ condition on restriction. For example if Role A denies Menu A and Role B denies Menu B, a user who have roles A & B the result will be ‘deny A AND deny B’. You can remove the deny condition on Menu B by enabling the ‘Disable For Secondary Role’ option for Role B, provided Role B is a secondary role for that user. Basically only the primary role rules will be applied when that option is enabled.

    In your case even if you enable that option for Role B, user will only have X & Y, since Role A explicitly denies menu Z. Your best option is to create a third role for User AB.

    Thanks

    Syam

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Confusing Menu Editor with Secondary Rules’ 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