summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 443b270)
raw | patch | inline | side by side (parent: 443b270)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 10:54:40 +0000 (10:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 10:54:40 +0000 (10:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4441 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/phoneaccount/class_phoneAccount.inc | patch | blob | history |
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index c20d7cf4d5d0bbc4758ebcc656b1843371822f23..7c0f6e83945261da891f9a76dd66d250f9f6578d 100644 (file)
$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 */
$str = $default;
$dis = "";
- if(!$this->acl_is_writeable("goFonMacro")){
+ if(!$this->acl_is_writeable("goFonMacro",$SkipWrite)){
$dis = " disabled ";
}
/* 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{
$dis = "";
- if(!$this->acl_is_writeable("goFonHardware")){
+ if(!$this->acl_is_writeable("goFonHardware",$SkipWrite)){
$dis= " disabled ";
}
$hl= "<select size=\"1\" name=\"goFonHardware\" ".$dis." title=\"".
function save_object()
- {
+ {
+ $SkipWrite = (!isset($this->parent) || !$this->parent) && !isset($_SESSION['edit']);
if (isset($_POST["phoneTab"])){
plugin::save_object();
/* Save checkbox */
$tmp = preg_replace("/[^a-z]/i","",$this->goFonDeliveryMode);
- if($this->acl_is_writeable("goFonDeliveryMode")){
+ if($this->acl_is_writeable("goFonDeliveryMode",$SkipWrite)){
if(isset($_POST['fon_to_mail']) && !preg_match("/M/",$this->goFonDeliveryMode)){
$tmp .= "M";
}elseif(!isset($_POST['fon_to_mail']) && preg_match("/M/",$this->goFonDeliveryMode)){
/* get all Postvars */
if(isset($this->macroarray[$this->macro])){
- if($this->acl_is_writeable("goFonMarco")){
+ if($this->acl_is_writeable("goFonMarco",$SkipWrite)){
foreach($this->macroarray[$this->macro] as $key => $paras){
if(isset($_POST[$paras['var']])){
$this->macroarray[$this->macro][$key]['choosen'] = $_POST[$paras['var']];