Browse code

Bugfix: Logger zeigt wieder username an

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@602 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on08/08/2007 13:39:57
Showing1 changed files
... ...
@@ -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']);