WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ahjort
    Member
    Posted 5 months 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 ;)

    Thanks!

    https://wordpress.org/plugins/user-switching/

  2. John Blackbourn
    Member
    Plugin Author

    Posted 5 months 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
    Member
    Posted 5 months 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

Reply

You must log in to post.

About this Plugin

About this Topic