From 522ec257ad58a624b068dcf85c3217f93c2d7716 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 26 Jul 2006 06:28:34 +0000 Subject: [PATCH] Fixed display of section/object assignements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4303 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_acl.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/class_acl.inc b/include/class_acl.inc index 8870d1a2c..fe19f9a7e 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -27,6 +27,7 @@ class acl extends plugin var $currentIndex= 0; var $wasNewEntry= FALSE; var $ocMapping= array(); + var $multiClass= array(); var $savedAclContents= array(); @@ -106,6 +107,11 @@ class acl extends plugin /* Only feed categories */ if (isset($acls['plCategory'])){ + /* Find multi homed classes */ + if (count($acls['plCategory']) > 1){ + $this->multiClass[]= $class; + } + /* Walk through supplied list and feed only translated categories */ foreach($acls['plCategory'] as $idx => $data){ @@ -146,7 +152,6 @@ class acl extends plugin /* Sort categories */ asort($this->aclObjects); - /* Fill acl types */ if ($this->isContainer){ $this->aclTypes= array("reset" => _("Reset ACLs"), @@ -377,6 +382,13 @@ class acl extends plugin foreach($this->ocMapping[$section] as $oc){ if (isset($this->aclContents[$oc]) && count($this->aclContents[$oc]) && isset($this->aclContents[$oc][0]) && $this->aclContents[$oc][0] != ""){ + + $summary.= "$oc, "; + continue; + } + if (isset($this->aclContents["$section/$oc"]) && count($this->aclContents["$section/$oc"]) && isset($this->aclContents["$section/$oc"][0]) && + $this->aclContents["$section/$oc"][0] != ""){ + $summary.= "$oc, "; continue; } -- 2.30.2