Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notwithstanding #695952: Unable to "switch back" to Admin having masqueraded as another user, Masquerade has always provided me with a "Switch back" link in Drupal 6. In in the D7 version, though, there is no such link, forcing me to log out entirely and log back in.
Comments
Comment #1
alberto56 CreditAttribution: alberto56 commentedComment #2
andypostDuplicate of #1004014: Replace hook_menu_link_alter() with hook_menu_alter()
Comment #3
modulist CreditAttribution: modulist commentedI'm running into the same issue.
Comment #4
designcontext CreditAttribution: designcontext commentedYou need the masquerade block. Set the permission to view this block to your admin role and other roles you like to switch to. Anyway the block is not visible for theese roles when you set the permission for using masquerade only to admin.
Comment #5
andypost@designcontext when you switching into some user then you have $_SESSION['masquerading'] is set