From debf60ae39be4abd5b16272cec584372fd4d6756 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 May 2010 07:09:38 +0000 Subject: [PATCH] Updated properties and configRegistry checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18312 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/gosa.conf.5 | 2 +- gosa-core/include/class_configRegistry.inc | 5 +++++ gosa-core/plugins/addons/configViewer/class_configViewer.inc | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-core/contrib/gosa.conf.5 b/gosa-core/contrib/gosa.conf.5 index afe458cdf..91b471895 100644 --- a/gosa-core/contrib/gosa.conf.5 +++ b/gosa-core/contrib/gosa.conf.5 @@ -955,7 +955,7 @@ method. .I integer .PP The -.I uidNumberPoolMin/gidNumberPoolMin +.I uidNumberPoolMax/gidNumberPoolMax statement defines the highest assignable user/group id for use with the .I pool method. diff --git a/gosa-core/include/class_configRegistry.inc b/gosa-core/include/class_configRegistry.inc index d97aa66ae..6e458c096 100644 --- a/gosa-core/include/class_configRegistry.inc +++ b/gosa-core/include/class_configRegistry.inc @@ -257,6 +257,11 @@ class gosaProperty return(!empty($value)&&is_writeable($value)); } + static function isReadableFile($message,$class,$name,$value, $type) + { + return(!empty($value)&&is_readable($value)&&is_file($value)); + } + static function isCommand($message,$class,$name,$value, $type) { return(TRUE); diff --git a/gosa-core/plugins/addons/configViewer/class_configViewer.inc b/gosa-core/plugins/addons/configViewer/class_configViewer.inc index 41db5b37a..99a34440b 100644 --- a/gosa-core/plugins/addons/configViewer/class_configViewer.inc +++ b/gosa-core/plugins/addons/configViewer/class_configViewer.inc @@ -166,6 +166,7 @@ class configViewer extends management case 'rdn': case 'uri': case 'path': + case 'file': case 'command': case 'string': case 'integer': -- 2.30.2