summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/auth.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php
index ef1891627..9fa721e14 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -76,6 +76,9 @@
global $AUTH_ACL;
if(is_readable(DOKU_CONF.'acl.auth.php')){
$AUTH_ACL = file(DOKU_CONF.'acl.auth.php');
+ if(isset($_SERVER['REMOTE_USER']){
+ $AUTH_ACL = str_replace('@USER@',$_SERVER['REMOTE_USER'],$AUTH_ACL);
+ }
}else{
$AUTH_ACL = array();
}