From 6d9ca24e32fc936c3a4f243cf3cf6ed29433c66d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Jan 2007 09:11:25 +0000 Subject: [PATCH] Updated fax acls. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5530 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/acl_definition.inc | 2 +- plugins/gofax/faxaccount/class_gofaxAccount.inc | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/admin/groups/acl_definition.inc b/plugins/admin/groups/acl_definition.inc index 736f41446..19e7305f5 100644 --- a/plugins/admin/groups/acl_definition.inc +++ b/plugins/admin/groups/acl_definition.inc @@ -389,7 +389,7 @@ $ACLD['opengwAccount'] =array("create" =>"Enable/disable account", $ACLD['systems'] =array("systems" ); $ACLD['FAIclass'] =array("FAIclass" ); -$ACLD['phoneAccount'] = array("create","goFonDeliveryMode", +$ACLD['phoneAccount'] = array("create","goFonDeliveryMode","goFonHomeServer", "goFonHardware","goFonPIN","goFonVoicemailPIN","telephoneNumber", "goFonMacro"); $ACLD['nagiosAccount'] = array("NagiosAlias" diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 2984ce068..ea68073ee 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -16,7 +16,7 @@ class gofaxAccount extends plugin var $departments; /* Fax attributes */ - var $goFaxDeliveryMode= ""; + var $goFaxDeliveryMode= "0"; var $facsimileTelephoneNumber= ""; var $goFaxIsEnabled= 1; var $goFaxPrinter= ""; @@ -100,12 +100,19 @@ class gofaxAccount extends plugin "regex" => ""); register_global("faxfilter", $faxfilter); } + $this->ui = get_userinfo(); } function execute() { /* Call parent execute */ plugin::execute(); + + + $acl= get_permissions ($this->ui->dn, $this->ui->subtreeACL); + $editacl= get_module_permission($acl, "gofax", $this->dn); + $this->acl = $editacl; + /* Hickert : 11.11.05 * Added to be able to handle department selection in divSelelect */ -- 2.30.2