Bugfix: Logger zeigt wieder username an
bernd

bernd commited on 2007-08-08 13:39:57
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@602 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -31,9 +31,9 @@ function maybe_null($value)
31 31
 function logger($scriptname, $scope, $message)
32 32
 {
33 33
   $user = 'NULL';
34
-  if ($_SESSION['role'] == ROLE_SYSTEMUSER)
34
+  if ($_SESSION['role'] & ROLE_SYSTEMUSER)
35 35
     $user = "'{$_SESSION['userinfo']['username']}'";
36
-  elseif ($_SESSION['role'] == ROLE_CUSTOMER)
36
+  elseif ($_SESSION['role'] & ROLE_CUSTOMER)
37 37
     $user = "'{$_SESSION['customerinfo']['customerno']}'";
38 38
   
39 39
   $remote = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);
40 40