I don't know much about this module, but I'm assuming 'sid' is referring to session id? So maybe this is something new in the way 4.7 handles session id's, but at any rate, when switching users, the sid is not inserted into the table, which therefore makes it impossible to switch back.

The menu item is not available to switch back, and when you navigate to masquerade/unswitch, it says "access denied". I tried adding $user->sid = session_id(); before the INSERT query, and then the menu item showed up (and it inserted a session id into the table), but when I tried to switch back, it just logged me out.

cheers...

Comments

q0rban’s picture

well i replaced all instances of $user->sid with session_id(), and inserted $edit_user->sid = session_id(); in the 'logout' case of masquerade_user(), and it seems to have fixed the problem...

merlinofchaos’s picture

Status: Active » Fixed

This was true in the 4.6 version as well. (The 4.7 version was written first, in fact).

Fixed in both.

Anonymous’s picture

Status: Fixed » Closed (fixed)