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: user capability

  • This topic has 9 replies, 2 voices, and was last updated 4 years, 6 months ago by Syam Mohan.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • January 29, 2020 at 6:44 am #94242
    Chris Bribach
    Participant

    We would like our ‘sales manager’ to set pricing levels by selecting any user capability ( ex. customer / trade / wholesale ) but not accidently set a customer to their own level ‘sales manager’. When testing as a ‘sales manager’ their own level shows as an option in the user area. How can I remove their own user level not to show as an option here?

    January 29, 2020 at 7:05 pm #94246
    Syam Mohan
    Keymaster

    Hi Chris,

    Using “User Level Permissions” you can remove higher level roles. That means they will be able to promote users up to “Sales Manager”. So its not possible with current implementation.

    Let me see whether I can give you a custom code to work around this issue.

    Thanks

    Syam

    February 5, 2020 at 8:08 pm #94542
    Syam Mohan
    Keymaster
    This reply has been marked as private.
    February 5, 2020 at 11:47 pm #94549
    Chris Bribach
    Participant

    Thanks. I added this to my child theme and it works perfectly!

    February 6, 2020 at 8:58 pm #94607
    Syam Mohan
    Keymaster

    Glad to hear.

    Thanks

    February 26, 2020 at 11:24 pm #95343
    Chris Bribach
    Participant

    I’ve found another security hole. The user has access to Users : Assign/Migrate where they can assign a user to theirs and other roles. How an I allow this user to use the User module and limit this user from the Assign/Migrate function?

    February 27, 2020 at 9:48 pm #95386
    Syam Mohan
    Keymaster

    Hi Chris,

    Are you saying that the custom code I gave you doesn’t work in the “Assign/Migrate” page? Or is it something else?

    Thanks

    Syam

    October 21, 2020 at 11:23 pm #105892
    Chris Bribach
    Participant

    Hello. It’s been a while. Did you create a built-in selector to limit self-promoting?

    October 22, 2020 at 12:09 am #105895
    Chris Bribach
    Participant

    Yes. The code you provided works perfectly. Thank you.

    However the option to self-promote still shows in the Secondary Roles section.

    Can you provide a code fix for this as well?

    October 22, 2020 at 10:47 pm #105948
    Syam Mohan
    Keymaster

    Hi Chris,

    Closing this topic since the code I sent you through email works in your case.

    Thanks

    Syam

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In
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