Code

Added more loggin to fai remove. Just for testing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 10:01:09 +0000 (10:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 10:01:09 +0000 (10:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10685 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc

index 95c2a83084743025a2932626d77d61d96bb8fbf6..9dba9738c1dd14d3bc98d9f27bc308c99a8e50af 100644 (file)
@@ -505,7 +505,17 @@ class faiManagement extends plugin
           $this->postremove();
 
           new log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
+          trigger_error("Should be removed");
+        }else{
+          if(!isset($br[$bb])){
+            trigger_error("Invalid release ".$bb);
+          }
+          if(!$this->acl_is_removeable()){
+            trigger_error("Invalid permission");
+          }
         }
+      }else{
+        trigger_error("No remove Hook");
       }
     }