summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index f08acb318..c9e553ba7 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -165,11 +165,8 @@ function check(){
}
if($INFO['userinfo']['name']){
- global $auth;
- msg('You are currently logged in as '.$_SESSION[DOKU_COOKIE]['auth']['user'].' ('.$INFO['userinfo']['name'].')',0);
-
- if($auth) $info = $auth->getUserData($_SESSION[DOKU_COOKIE]['auth']['user']);
- msg('You are part of the groups '.implode($info['grps'],', '),0);
+ msg('You are currently logged in as '.$_SERVER['REMOTE_USER'].' ('.$INFO['userinfo']['name'].')',0);
+ msg('You are part of the groups '.join($INFO['userinfo']['grps'],', '),0);
}else{
msg('You are currently not logged in',0);
}