Code

Fixed remove acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 May 2011 08:24:41 +0000 (08:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 May 2011 08:24:41 +0000 (08:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20878 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc

index 7c696be5c867dad4c03ce078b7d6f153d06549fb..6bb37d2a6619838587a08541fedffd76636fe165 100644 (file)
@@ -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);