From c179167850b6c44679deb9edd4a816243addb52d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 3 Dec 2007 21:15:32 +0100 Subject: 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 --- inc/infoutils.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'inc/infoutils.php') 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); } -- cgit v1.2.3