Here's a patch with most demanded new features:

  • Provides a block for easy Masquerading
  • Autocomplete username fields in block and settings
  • Better usability

Please review the patch for bugs and other issues.

Feature requests are welcome.

Comments

m3avrck’s picture

Subscribing... this sounds awesome!

mikehostetler’s picture

I am really looking forward to this! Thanks Gurpartap!

Gurpartap Singh’s picture

Masquerade Block needs to have permissions restriction. Will be set for:
User, if masquerading.
User, with 'masquerade as user' or 'masquerade as admin' permissons.

Gurpartap Singh’s picture

StatusFileSize
new7.17 KB

and here's the patch.

Gurpartap Singh’s picture

StatusFileSize
new7.52 KB

Also, just discovered, when masquerading as anonymous user, you need to login back instead of using switch back. Patch gives better UI. switch back replaced with login back while anonymous masquerading.

m3avrck’s picture

Very nice. Seems to be working quite well, although I couldn't figure out what the "quick switch" did.

Once I switched to a user... I saw the "switch back" which is soooooo awesome.

I think it's good minus that initial link :-)

Gurpartap Singh’s picture

StatusFileSize
new7.24 KB

"quick switch' is what the name says. It'll let you masquerade as a predefined user. Although it's already easier with autocomplete field, but some more quick action you can define the quick switch user under masquerade settings.

There was a block visibility problem. Block will be visible to users who are allowed to access it or if the user is masquerading.

Gurpartap Singh’s picture

Ignore the last patch. This one applies. Same to last to last one. :)

Gurpartap Singh’s picture

StatusFileSize
new7.56 KB

Here.

Gurpartap Singh’s picture

Status: Needs review » Reviewed & tested by the community

Works good for me. Got no reviews for long. Marking RTBC. And will commit into cvs soon.

Gurpartap Singh’s picture

Status: Reviewed & tested by the community » Fixed
Gurpartap Singh’s picture

Status: Fixed » Closed (fixed)

  • Commit ea5b4cb on 5.x-1.x, 6.x-1.x, master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by Gurpartap Singh:
    #88899 - New masquerading features.
    
    

  • Commit ea5b4cb on 5.x-1.x, 6.x-1.x, master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by Gurpartap Singh:
    #88899 - New masquerading features.