Code

Added view to valid objects
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 13:18:39 +0000 (13:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 May 2007 13:18:39 +0000 (13:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6371 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_log.inc

index 2a9810f38e4845f909253886fa6aff2ef14f1b22..e3ec3a513fd594f6a1764e323c6f104a22ec2932 100644 (file)
@@ -70,6 +70,7 @@ class log {
     if(count($msgs)){
       foreach($msgs as $msg){
         trigger_error("Logging failed, reason was: ".$msg);
+        print_red("Logging failed, reason was: ".$msg);
       }
     }else{
 
@@ -91,7 +92,7 @@ class log {
       $msgs[] = "Currently active user is empty.";
     }
 
-    if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot"))){
+    if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view"))){
       $msgs[] = "Invalid option specified '".$entry['action']."'";
     }