From e8e3c0cd95f2bf59cd18112164bd20aeeca3bd69 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 8 Sep 2006 10:22:18 +0000 Subject: [PATCH] Fixed some issues in class_acl.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4631 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_acl.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/class_acl.inc b/include/class_acl.inc index a25ea05a9..7bd9ba33f 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -215,7 +215,7 @@ class acl extends plugin if (preg_match('/^cat_del_.*_x/', $name)){ $idx= preg_replace('/^cat_del_([^_]+)_.*$/', '\1', $name); foreach ($this->ocMapping[$idx] as $key){ - unset($this->aclContents[$key]); + unset($this->aclContents["$idx/$key"]); } continue; } @@ -245,6 +245,11 @@ class acl extends plugin $aclDialog= TRUE; list($dummy, $object, $attribute, $value)= split('_', $name); + /* Skip for detection entry */ + if ($object == 'dummy') { + continue; + } + /* Ordinary ACLs */ if (!isset($new_acl[$object])){ $new_acl[$object]= array(); @@ -258,7 +263,8 @@ class acl extends plugin } /* Only be interested in new acl's, if we're in the right _POST place */ - if ($aclDialog && isset($this->ocMapping[$this->aclObject])){ + if ($aclDialog && is_array($this->ocMapping[$this->aclObject])){ + foreach ($this->ocMapping[$this->aclObject] as $oc){ unset($this->aclContents[$oc]); unset($this->aclContents[$this->aclObject.'/'.$oc]); @@ -470,7 +476,7 @@ class acl extends plugin function buildAclSelector($list) { - $display= ""; + $display= ""; $cols= 3; $tmp= get_global('plist'); $plist= $tmp->info; -- 2.30.2