From: hickert Date: Thu, 1 Jul 2010 07:32:41 +0000 (+0000) Subject: Disbled dashBoard in icon menu by default. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53adad46800cb7c329b8991ffbbe6562aa83f73f;p=gosa.git Disbled dashBoard in icon menu by default. -Updated pluglist and plugin ACL check, ignores spaces and line breaks now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index 9bc9842eb..0ad2f547f 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -73,7 +73,7 @@ - + diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index f633d55f9..ca829d7e1 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -87,6 +87,10 @@ class pluglist { global $class_mapping; + // Clean ACL string, we do not want any spaces or lines breaks here. + $plug['ACL'] = trim($plug['ACL']); + + // Check class if (!isset($plug['CLASS'])){ msg_dialog::display( _("Configuration error"), @@ -128,7 +132,11 @@ class pluglist } foreach($acls_to_check as $acl_to_check){ + + // Remove spaces and line breaks. $acl_to_check = trim($acl_to_check); + $acl_to_check = preg_replace("/ /","",$acl_to_check); + /* Check if the given acl tag is only valid for self acl entries *