diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-12-03 21:15:32 +0100 |
commit | c179167850b6c44679deb9edd4a816243addb52d (patch) | |
tree | a78851d26a4a9eb0db24b96b1f3a7289f8a3724e /inc/infoutils.php | |
parent | 1b2abcf93c01d372fac2868ee6930c2326b7c914 (diff) | |
download | rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.gz rpg-c179167850b6c44679deb9edd4a816243addb52d.tar.bz2 |
getUserData should really be implemented always... (FS#1272)
... but with this patch DokuWiki will not break completely when left out for
trustExternal() auth backends
darcs-hash:20071203201532-7ad00-72dbc2d16e4c8c09cca9558286164f4d858c19ce.gz
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r-- | inc/infoutils.php | 7 |
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); } |