Browse code

Lösche alte Kundendaten aus der Session beim su

Bernd Wurst authored on31/07/2019 07:09:53
Showing1 changed files
... ...
@@ -334,4 +334,7 @@ function setup_session($role, $useridentity)
334 334
         $_SESSION['userinfo'] = get_user_info($uid);
335 335
         DEBUG("We are virtual mailaccount: {$_SESSION['mailaccount']}");
336 336
     }
337
+    if (! ($role & ROLE_CUSTOMER)) {
338
+        $_SESSION['customerinfo'] = array();
339
+    }
337 340
 }