Code

Added warning when adding new Kiosk profiles and we are not all to write to the kiosk...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Nov 2007 15:06:02 +0000 (15:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Nov 2007 15:06:02 +0000 (15:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7877 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goKioskService.inc

index 5b87b4e830282c2f7a7cfd62cef5d5fc0f5d34e7..83f2624fafdbd53b61ebd8c679a805bfddcd58e5 100644 (file)
@@ -90,6 +90,9 @@ class goKioskService extends goService{
             'exists'  => TRUE);
         $this->gotoKioskProfiles[] = $tmp;
       }
+      if(!is_writeable($this->baseDir)){
+        print_red(sprintf(_("Can't save new kiosk profiles, possibly permission denied for folder: '%s'."),$this->baseDir));
+      }
     }
 
     $only_once = true;