summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a55a2cf)
raw | patch | inline | side by side (parent: a55a2cf)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 11:01:48 +0000 (11:01 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 11:01:48 +0000 (11:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15256 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index 85198923fd71f9656d65b5c8a7167e5ada512d93..9ffb82369e52ac10c2e49050dd1a041ca5eecb65 100644 (file)
{
$ui= get_userinfo();
-############# MARKER
- if ($classes) {
- $otype= $this->getObjectType($this->objectTypes, $classes);
- echo "Type: $otype<br>";
- #$category= $this->category[$otype];
- #$params[]= $ui->get_category_permissions($dn, $category);
- }
-
if (isset($action['acl'])) {
$acls= $action['acl'];
if (!is_array($acls)) {
$module= $this->module;
$aclList= array();
+ // Replace %acl if available
+ if ($classes) {
+ $otype= $this->getObjectType($this->objectTypes, $classes);
+ echo "ACL replace: $module/".$otype['category']."<br>";
+ $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)){