summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorGuy Brand <gb@isis.u-strasbg.fr>2007-03-02 00:03:09 +0100
committerGuy Brand <gb@isis.u-strasbg.fr>2007-03-02 00:03:09 +0100
commita8fe108b00a44fe91f90820a1e3cf44b55de2259 (patch)
tree0b9be9cd673505ba819510698516653f5458e367 /inc/auth.php
parent15018435b2c3805dbe2ab4ea872c904c2f1258e3 (diff)
downloadrpg-a8fe108b00a44fe91f90820a1e3cf44b55de2259.tar.gz
rpg-a8fe108b00a44fe91f90820a1e3cf44b55de2259.tar.bz2
Allow @USER@ variable in ACLs
This saves a lot of ACL lines for users namespaces for example: users:* @ALL 1 users:@USER@ @USER@ 8 darcs-hash:20070301230309-19e2d-90a00b70a2af546fd5194ade614c130e9f7864eb.gz
Diffstat (limited to 'inc/auth.php')
-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();
}