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
Comment #1
q0rban CreditAttribution: q0rban commentedwell i replaced all instances of
$user->sid
withsession_id()
, and inserted$edit_user->sid = session_id();
in the'logout'
case ofmasquerade_user()
, and it seems to have fixed the problem...Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedThis was true in the 4.6 version as well. (The 4.7 version was written first, in fact).
Fixed in both.
Comment #3
(not verified) CreditAttribution: commented