From: hickert Date: Thu, 19 May 2011 08:24:41 +0000 (+0000) Subject: Fixed remove acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=397e808333a065f9866494f7dc22da3238f3a364;p=gosa.git Fixed remove acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20878 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc index 7c696be5c..6bb37d2a6 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc @@ -539,7 +539,7 @@ class ConfigManagement extends plugin $acl = $ui->get_permissions($dn, "ConfigManagement/ConfigManagement", "cfgItem"); // Check permissions, are we allowed to remove this object? - if(preg_match("/d/",$acl)){ + if(preg_match("/w/",$acl)){ $names["({$item['type']}) {$item['path']})"] = $item['name']; $this->ids[] = $id; } else { @@ -558,9 +558,6 @@ class ConfigManagement extends plugin function remove_confirmed() { - echo 'timmay'; - return; - $ids = $this->ids; foreach($ids as $id){ $item = $this->dataModel->getItemByDn($id);