The code in masquerade_user_logout($account) contains
if (!empty($account->masquerading))
The users could not logout back to their original user. I changed the code to the following and users could logout without problems using the standard Drupal logout menu entry.
if (!empty($_SESSION['masquerading']))

An alternative might be to load $account->masquerading in hook_user_load.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hgoto’s picture

It's so late but this bug still exists and here is a patch for this.

hgoto’s picture

Status: Active » Needs review

Status: Needs review » Needs work

Status: Needs work » Needs review
hgoto’s picture

Version: 7.x-1.0-rc4 » 7.x-1.x-dev