From: cajus Date: Fri, 22 Jan 2010 10:51:43 +0000 (+0000) Subject: Update acl stuff X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a55a2cf24e33de317de2650582e10a8d88f28d7e;p=gosa.git Update acl stuff git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 8dc550dff..85198923f 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -746,16 +746,6 @@ class listing { continue; } - // Move acl information if needed - if ($param == "acl") { - $otype= $this->getObjectType($this->objectTypes, $config["objectClass"]); - echo "Type: $otype
"; - #$category= $this->category[$otype]; - #$params[]= $ui->get_category_permissions($config["dn"], $category); - $params[]= 'rwcdm'; - continue; - } - // Move dn if needed if ($param == "dn") { $params[]= LDAP::fix($config["dn"]); @@ -852,7 +842,7 @@ class listing { $actions= $this->xmlData['actiontriggers']['action']; foreach($actions as $action) { // Skip the entry completely if there's no permission to execute it - if (!$this->hasActionPermission($action, $dn)) { + if (!$this->hasActionPermission($action, $dn, $classes)) { $result.= " "; continue; } @@ -1213,10 +1203,18 @@ class listing { } - function hasActionPermission($action, $dn) + function hasActionPermission($action, $dn, $classes= null) { $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)) {