summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-03-30 20:21:09 +0200
committerandi <andi@splitbrain.org>2005-03-30 20:21:09 +0200
commit7e908a617b10e09817f3170e2bcbb77ef0b95e03 (patch)
tree5c6e0ae6eafe9100a5cc66a4a9890d281101b130 /inc
parent9ed00c2eec762f43aaed748c5148e7bd65927f38 (diff)
downloadrpg-7e908a617b10e09817f3170e2bcbb77ef0b95e03.tar.gz
rpg-7e908a617b10e09817f3170e2bcbb77ef0b95e03.tar.bz2
fix for permission list in ACL config (#225)
darcs-hash:20050330182109-9977f-007c42b543f201ffb14c1863cf4dbfd5a27df472.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/admin_acl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/admin_acl.php b/inc/admin_acl.php
index c8ac5755d..d07cf4550 100644
--- a/inc/admin_acl.php
+++ b/inc/admin_acl.php
@@ -58,13 +58,13 @@ function admin_acl_handler(){
* @todo can this be combined with auth_aclcheck to avoid duplicate code?
* @author Frank Schubert <frank@schokilade.de>
*/
-function get_acl_config($ID){
+function get_acl_config($id){
global $AUTH_ACL;
$acl_config=array();
// match exact name
- $matches = preg_grep('/^'.$ID.'\s+.*/',$AUTH_ACL);
+ $matches = preg_grep('/^'.$id.'\s+.*/',$AUTH_ACL);
if(count($matches)){
foreach($matches as $match){
$match = preg_replace('/#.*$/','',$match); //ignore comments
@@ -76,8 +76,8 @@ function get_acl_config($ID){
$specific_found=array();
// match ns
- if(($ID=getNS($ID)) !== false){
- $matches = preg_grep('/^'.$ID.':\*\s+.*/',$AUTH_ACL);
+ while(($id=getNS($id)) !== false){
+ $matches = preg_grep('/^'.$id.':\*\s+.*/',$AUTH_ACL);
if(count($matches)){
foreach($matches as $match){
$match = preg_replace('/#.*$/','',$match); //ignore comments