From 01deeb891dcb3e6a598c8f221f896d472426d77d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Aug 2006 07:21:28 +0000 Subject: [PATCH] Added edit button behavior for netatalk git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4461 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/netatalk/class_netatalk.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc index ec8e19c3e..7e673fe71 100644 --- a/plugins/personal/netatalk/class_netatalk.inc +++ b/plugins/personal/netatalk/class_netatalk.inc @@ -175,9 +175,9 @@ class netatalk extends plugin { } 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)) { -- 2.30.2