Permalink
Browse files

* Re-connect session variables when doing an su. This bug would resul…

…t in

  $Scratch and others not being correct for page where su occurs.
  • Loading branch information...
Mike Heins
Mike Heins committed Jul 30, 2013
1 parent bea662d commit d497f8bb49854edc1284aa02fd480346ec88327c
Showing with 3 additions and 0 deletions.
  1. +3 −0 code/UI_Tag/su.coretag
View
@@ -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",

0 comments on commit d497f8b

Please sign in to comment.