Skip to content
Snippets Groups Projects
Commit 3d3c095d authored by Mike Frysinger's avatar Mike Frysinger
Browse files

add some helpful user/group information to ?do

this simple patch adds user/group output when viewing a page
with ?do

darcs-hash:20061205201753-5224c-600980b0649b4cc927be5f46516f73aff3a6e7ed.gz
parent 2ab3459f
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,16 @@ function check(){
msg('Debugging support is disabled',1);
}
if($INFO['userinfo']['name']){
global $auth;
msg('You are currently logged in as '.$_SESSION[DOKU_COOKIE]['auth']['user'].' ('.$INFO['userinfo']['name'].')',0);
$info = $auth->getUserData($_SESSION[DOKU_COOKIE]['auth']['user']);
msg('You are part of the groups '.implode($info['grps'],', '),0);
}else{
msg('You are currently not logged in',0);
}
msg('Your current permission for this page is '.$INFO['perm'],0);
if(is_writable($INFO['filepath'])){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment