User Role Editor
plugin incompatibility: your 'pre_user_query' action is alterin (2 posts)

  1. louisremi
    Posted 3 years ago #

    I've noticed that you set a 'pre_user_query' action hook to remove Admins from user queries.

    This is really bad as all other plugins trying to list users won't be able to list admins. Those plugins will seem to be working correctly for the admin (because the action hook won't apply to him) but will appear broken to other users, making the problem even more difficult to fix.

    Currently my workaround is to stop using your plugin. add_role, get_role et al. are actually good enough for the job.


  2. Vladimir Garagulya
    Plugin Author

    Posted 3 years ago #

    Excluding admin user from user list for all other users except admin is a security measure for those cases when admin delegates 'list_users', 'edit_users' capabilities to someone else, e.g. account operator - this helps to prohibit original admin user profile modification.

    May be I should not make it in global scope, but just for the 'Users' context... I will investigate this subject.

    Thanks for your message.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Role Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.