From: hickert Date: Tue, 27 May 2008 08:51:57 +0000 (+0000) Subject: Fixed goFonAccount ACLs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eeda5e5343e886861f0708efd887228f5fab1daa;p=gosa.git Fixed goFonAccount ACLs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11017 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc index e89cc3f69..831f5bd5e 100644 --- a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc +++ b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc @@ -38,7 +38,7 @@ class phoneAccount extends plugin var $CopyPasteVars = array("phoneNumbers","macroarray","macrostillavailable"/*"phoneNumbers" -Reset- */, "hardware_list","used_hardware"); - var $attributes = array("goFonDeliveryMode", "goFonFormat","cn","goFonHomeServer", + var $attributes = array("goFonDeliveryMode", "goFonFormat","cn","goFonHomeServer","goFonContext","goFonVoiceMailContext", "goFonHardware","goFonPIN","goFonVoicemailPIN","telephoneNumber", "goFonMacro","macro"); var $objectclasses= array("goFonAccount"); @@ -930,7 +930,6 @@ class phoneAccount extends plugin $smarty->assign("contexts",$this->get_asterisk_contexts()); $smarty->assign("context" ,$this->context); $smarty->assign("voice_context" ,$this->voice_context); - $smarty->assign("goFonContextACL", $this->getacl("context")); /* check if there is a FON server created */ if(!count($this->goFonHomeServer)){ @@ -1555,9 +1554,9 @@ class phoneAccount extends plugin "plSelfModify" => TRUE, "plDepends" => array("user"), "plPriority" => 7, // Position in tabs - "plSection" => "personal", // This belongs to personal - "plCategory" => array("gofonreport" => array("description" => _("GOfon reports"), - "objectClass" => "")), + "plSection" => array("personal" => _("My account")), + "plCategory" => array("users"), + "plOptions" => array(), @@ -1566,6 +1565,8 @@ class phoneAccount extends plugin "goFonHomeServer" => _("Home server"), "goFonMacro" => _("Macro settings"), "goFonHardware" => _("Phone hardware"), + "goFonContext" => _("Phone context"), + "goFonVoiceMailContext" => _("Voice mail context"), "goFonPIN" => _("Telephone pin"), "goFonVoicemailPIN" => _("Voicemail pin")) )); diff --git a/gosa-plugins/gofon/gofon/phoneaccount/generic.tpl b/gosa-plugins/gofon/gofon/phoneaccount/generic.tpl index 6162872d8..6a18810af 100644 --- a/gosa-plugins/gofon/gofon/phoneaccount/generic.tpl +++ b/gosa-plugins/gofon/gofon/phoneaccount/generic.tpl @@ -48,7 +48,9 @@ {t}Telephone{/t} + {render acl=$goFonHardwareACL checkbox=$multiple_support checked=$use_goFonHardware} {$hardware_list} + {/render} {/if} @@ -67,18 +69,22 @@ {t}Context{/t} - {html_options values=$contexts output=$contexts selected=$context} +{/render} {t}Voicemail context{/t} - {html_options values=$contexts output=$contexts selected=$voice_context} +{/render}