From 5a669fb3214ddb25adf20710b59eed8cbd032772 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Aug 2006 10:54:40 +0000 Subject: [PATCH] Fixed acls for phone accoun git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4441 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index c20d7cf4d..7c0f6e839 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -576,6 +576,8 @@ class phoneAccount extends plugin $display = ""; + $SkipWrite = (!isset($this->parent) || !$this->parent) && !isset($_SESSION['edit']); + if(empty($this->macro)&&(!empty($this->goFonMacro))){ /* Go through already saved values, for a parameter */ @@ -696,7 +698,7 @@ class phoneAccount extends plugin $str = $default; $dis = ""; - if(!$this->acl_is_writeable("goFonMacro")){ + if(!$this->acl_is_writeable("goFonMacro",$SkipWrite)){ $dis = " disabled "; } @@ -789,7 +791,7 @@ class phoneAccount extends plugin /* Transfer ACL's */ foreach($this->attributes as $val){ - $smarty->assign($val."ACL",$this->getacl($val)); + $smarty->assign($val."ACL",$this->getacl($val,$SkipWrite)); if(isset($this->$val)){ $smarty->assign($val,$this->$val); }else{ @@ -807,7 +809,7 @@ class phoneAccount extends plugin $dis = ""; - if(!$this->acl_is_writeable("goFonHardware")){ + if(!$this->acl_is_writeable("goFonHardware",$SkipWrite)){ $dis= " disabled "; } $hl= "