From: cajus Date: Fri, 22 Jan 2010 11:01:48 +0000 (+0000) Subject: Updated acl stuff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65658a15d59dd4a74c3b3768022c3f79bc8b78af;p=gosa.git Updated acl stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15256 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)){