From a5fe04f3a7b0c63dd6ce9f13041a826971cbcf9c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 May 2010 10:20:00 +0000 Subject: [PATCH] Updated some checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18178 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_configRegistry.inc | 4 ++-- gosa-core/include/class_core.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index 076f626ef..c60767f10 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -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) diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index ab8a50c83..dd1b2ed06 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -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), -- 2.30.2