All users, also from not allowed user roles, showing up in auto complete

Created on 2 October 2018, over 5 years ago
Updated 6 July 2023, 12 months ago

When I select user role X to only masquerade as user role Y, I still see users from other roles showing up in the auto complete options of the masquerade form. I even see user name for adminstrator. Shouldn't that be filtered for only the users from the allowed roles for masquerading?
The user cannot switch to that user (for example admin user) and a misleading message is showing, saying the form is outdated...

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇳🇱Netherlands Jeroen Dost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Open in Jenkins → Open on Drupal.org →
    Core: 10.0.7 + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    4 pass
  • 🇪🇸Spain plopesc Valladolid

    Adding new patch version fixing the broken tests in the previous one.

  • 🇮🇳India Nikhil_110

    I applied the patch #9 it's working fine and login user are not showing in masquerade user list.I have attaching the screenshot for the reference.

    Test Step:

    • 1. Setup Drupal with Masquerade V8.x-2.x-dev
    • 2. Enabled Masquerade module
    • 3. Go to Administration > Structure > Block layout > Place block in the content region > Select masquerade and save it.
    • 4. After go to Administration > People > Roles > Add New role
    • 5. After i created two user and both are same role assign.
    • 6. (view) login via user and go to Masquerade form and enter username. login user are not showing in masquerade user list. I have added screenshot for reference
Production build 0.69.0 2024