User Switching
Make the Editors switch roles also (3 posts)

  1. Ahjort
    Posted 2 years ago #

    Hi guys,

    I assume it should be a quick fix to add the permission for Editors to switch roles aswell as the admins. If anyone knows how to do that fix, karma and I will grant you ;)



  2. John Blackbourn
    WordPress Core Developer
    Plugin Author

    Posted 2 years ago #

    I assume it should be a quick fix...

    This isn't a straight forward as it sounds. In order to switch to a user you need the ability to edit that user. If you allow editors to edit users then they can switch into an administrator account and then they're no longer just an editor.

    You need to implement fine-grained permissions controls via the capabilities API to achieve this. Perfectly doable, but not straight forward.

  3. Ahjort
    Posted 2 years ago #

    It really doesn't matter if the editors switches into an admin user. They already have access to an admin user, but if it is possible to make an "if"-sentence in the user-switching.php file that will make the "Switch to" button appear that is all good then.

    Thanks mate

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Switching
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic