From 65658a15d59dd4a74c3b3768022c3f79bc8b78af Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 22 Jan 2010 11:01:48 +0000 Subject: [PATCH] Updated acl stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15256 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 85198923f..9ffb82369 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1207,14 +1207,6 @@ class listing { { $ui= get_userinfo(); -############# MARKER - if ($classes) { - $otype= $this->getObjectType($this->objectTypes, $classes); - echo "Type: $otype
"; - #$category= $this->category[$otype]; - #$params[]= $ui->get_category_permissions($dn, $category); - } - if (isset($action['acl'])) { $acls= $action['acl']; if (!is_array($acls)) { @@ -1226,6 +1218,13 @@ class listing { $module= $this->module; $aclList= array(); + // Replace %acl if available + if ($classes) { + $otype= $this->getObjectType($this->objectTypes, $classes); + echo "ACL replace: $module/".$otype['category']."
"; + $acl= str_replace('%acl', $module."/".$otype['category']); + } + // Split for category and plugins if needed // match for "[rw]" style entries if (preg_match('/^\[([rwcdm]+)\]$/', $acl, $match)){ -- 2.30.2