summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 043f2ca)
raw | patch | inline | side by side (parent: 043f2ca)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:21:28 +0000 (07:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 07:21:28 +0000 (07:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4461 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/netatalk/class_netatalk.inc | patch | blob | history |
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index ec8e19c3ed2fa1d026e942fe7b59fc4f041d44b7..7e673fe71efdd458915505eed4b0b2f47d0b5607 100644 (file)
}
asort($this->shares);
/* Assign attributes and ACL to smarty */
-
- $smarty->assign("netatalkShareACL", $this->getacl("netatalkShare"));
- $smarty->assign("netatalkUserHomepathACL", $this->getacl("netatalkUserHomepath"));
+ $SkipWrite = (!isset($this->parent) || !$this->parent) && !isset($_SESSION['edit']);
+ $smarty->assign("netatalkShareACL", $this->getacl("netatalkShare",$SkipWrite));
+ $smarty->assign("netatalkUserHomepathACL", $this->getacl("netatalkUserHomepath",$SkipWrite));
foreach ($this->smarty_attributes as $val) {
$smarty->assign("$val", $this-> $val);
if (in_array($val, $this->is_chk_box)) {