From: hickert Date: Thu, 19 May 2011 09:21:26 +0000 (+0000) Subject: Updated template widgets X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fb9637ac652c3e19dd7914af92ab534c3f82112f;p=gosa.git Updated template widgets git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20881 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc index 978fc5f61..b88c03a5e 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateEngine.inc @@ -136,8 +136,8 @@ class TemplateEngine $providedValues); // Get Permissions - $writeable = preg_match("/w/", $acl); - $readable = preg_match("/w/", $acl); + $writeable = preg_match("/w/", $acl); + $readable = preg_match("/r/", $acl); // Check if we've to disable this item. if(isset($item['disable']) && $item['disable'] || diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_textEditor.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_textEditor.inc index b052507e9..532677f35 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_textEditor.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_textEditor.inc @@ -26,9 +26,9 @@ class TemplateWidget_textEditor extends TemplateWidget $smarty->assign("postName", set_post($this->postName)); $smarty->assign("write_protect", set_post($this->write_protect)); $smarty->assign("value", set_post($this->value)); - $smarty->assign("enabled", set_post($this->enabled)); - $smarty->assign("readable", set_post($this->readable)); - $smarty->assign("writeable", set_post($this->writeable)); + $smarty->assign("enabled", $this->enabled); + $smarty->assign("readable", $this->readable); + $smarty->assign("writeable", $this->writeable); return($smarty->fetch(get_template_path("TemplateWidget_textEditor.tpl", TRUE, dirname(__FILE__)))); }