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.

Files: 
CommentFileSizeAuthor
#1 masquerade-fix_masquerade_user_logout_status_check_value-1425380-1.patch741 byteshgoto
FAILED: [[SimpleTest]]: [MySQL] 16 pass(es), 2 fail(s), and 0 exception(s). View

Comments

hgoto’s picture

Issue summary:View changes
FileSize
741 bytes
FAILED: [[SimpleTest]]: [MySQL] 16 pass(es), 2 fail(s), and 0 exception(s). View

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