Code

Updated some checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 May 2010 10:20:00 +0000 (10:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 May 2010 10:20:00 +0000 (10:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18178 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_configRegistry.inc
gosa-core/include/class_core.inc

index 076f626ef6386aa4f2e95ab27f12fdb488dc45c6..c60767f109f0c067f8632e6d352bdc6123b09ae7 100644 (file)
@@ -232,9 +232,9 @@ class gosaProperty
         return(TRUE);
     }
 
-    static function isExistingPath($message,$class,$name,$value, $type)
+    static function isWriteablePath($message,$class,$name,$value, $type)
     {
-        return(TRUE);
+        return(!empty($value)&&is_writeable($value));
     }
 
     static function isCommand($message,$class,$name,$value, $type)
index ab8a50c83bfe8602b1b3596542f5d472894352d4..dd1b2ed060aa1e94bb43c08579b75b88f4673cdc 100644 (file)
@@ -330,7 +330,7 @@ class core extends plugin {
                                 "type"          => "path",
                                 "default"       => "/var/spool/gosa",
                                 "description"   => "The 'templateCompileDirectory' statements defines the path, where the PHP templating engins 'smarty' should store its compiled GOsa templates for improved speed. This path needs to be writeable by the user your webserver is running with.",
-                                "check"         => "gosaProperty::isExistingPath",
+                                "check"         => "gosaProperty::isWriteablePath",
                                 "migrate"       => "",
                                 "group"         => "core",
                                 "mandatory"     => FALSE),
@@ -698,7 +698,7 @@ Example template /etc/gosa/vacation/business.txt:
    %givenName %sn
 
 ",
-                                "check"         => "gosaProperty::isExistingPath",
+                                "check"         => "gosaProperty::isWriteablePath",
                                 "migrate"       => "",
                                 "group"         => "mail",
                                 "mandatory"     => FALSE),