Skip to content

Commit

Permalink
* Re-connect session variables when doing an su. This bug would resul…
Browse files Browse the repository at this point in the history
…t in

  $Scratch and others not being correct for page where su occurs.
  • Loading branch information
Mike Heins committed Jul 30, 2013
1 parent bea662d commit d497f8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/UI_Tag/su.coretag
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ sub {
$Tag->userdb('load');
}

## Reconnect session variables
Vend::Interpolate::init_calc;

my $dest = $Tag->if_mm('logged_in') ? 'admin user' : 'regular user';
logError(
"superuser %s switched user to %s %s",
Expand Down

0 comments on commit d497f8b

Please sign in to comment.