summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c047d2)
raw | patch | inline | side by side (parent: 9c047d2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jul 2008 10:10:09 +0000 (10:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jul 2008 10:10:09 +0000 (10:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11591 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc b/gosa-plugins/webdav/personal/connectivity/webdav/class_webdavAccount.inc
index a16ce246aa278317d232b01c278c6e096ccc81b3..e30873bd1c52e95faeb8e9048513e16ac74d84c3 100644 (file)
$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__)));