From 5dd78d1c36f2169075cdded3b15e19d9e3b413a8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Jul 2008 10:10:09 +0000 Subject: [PATCH] Updated webdav is_account checkbox. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11591 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/connectivity/webdav/class_webdavAccount.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc b/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc index a16ce246a..e30873bd1 100644 --- a/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc +++ b/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc @@ -53,7 +53,14 @@ class webdavAccount extends plugin $smarty->assign("tabbed", 1); } - $smarty->assign('webdavAccountACL', $this->getacl("",$this->ReadOnly)); + /* check if we are allowed to switch the checkbox. + */ + $smarty->assign('webdavAccountACL', preg_replace("/w/","",$this->getacl("",$this->ReadOnly))); + if(($this->acl_is_removeable() && $this->is_account) || + ($this->acl_is_createable() && !$this->is_account)){ + $smarty->assign('webdavAccountACL', $this->getacl("",$this->ReadOnly)); + } + $smarty->assign("use_webdav",in_array("webdav",$this->multi_boxes)); $smarty->assign("multiple_support",$this->multiple_support_active); $display.= $smarty->fetch (get_template_path('webdav.tpl', TRUE, dirname(__FILE__))); -- 2.30.2