Skip to content
Snippets Groups Projects
Commit 17ee7f66 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

use REMOTE_USER for username if nothing else available #587

darcs-hash:20051022100740-7ad00-29869f9ced046d42d4f0a2fc484d37b85801108f.gz
parent 64a165d8
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,11 @@ function pageinfo(){
$info['userinfo'] = $USERINFO;
$info['perm'] = auth_quickaclcheck($ID);
$info['subscribed'] = is_subscribed($ID,$_SERVER['REMOTE_USER']);
// if some outside auth were used only REMOTE_USER is set
if(!$info['userinfo']['name']){
$info['userinfo']['name'] = $_SERVER['REMOTE_USER'];
}
}else{
$info['perm'] = auth_aclcheck($ID,'',null);
$info['subscribed'] = false;
......
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