From 505864828b466ca164e28f29382e24c54a30f676 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Jul 2008 13:17:28 +0000 Subject: [PATCH] Updated intranet account plugin. -Fixed checkbox toggling, grayout is now correctly used. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11583 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/connectivity/class_intranetAccount.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc b/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc index fddfeba42..49039c605 100644 --- a/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc +++ b/gosa-plugins/connectivity/personal/connectivity/class_intranetAccount.inc @@ -86,7 +86,14 @@ class intranetAccount extends plugin $smarty->assign("tabbed", 0); } - $smarty->assign('gosaIntranetACL', $this->getacl("",$this->ReadOnly)); + /* check if we are allowed to switch the checkbox. + */ + $smarty->assign('gosaIntranetACL', preg_replace("/w/","",$this->getacl("",$this->ReadOnly))); + if(($this->acl_is_removeable() && $this->is_account) || + ($this->acl_is_createable() && !$this->is_account)){ + $smarty->assign('gosaIntranetACL', $this->getacl("",$this->ReadOnly)); + } + $smarty->assign("use_intranet",in_array("intranet",$this->multi_boxes)); $smarty->assign("multiple_support",$this->multiple_support_active); $display.= $smarty->fetch (get_template_path('intranet.tpl', TRUE, dirname(__FILE__))); -- 2.30.2