Code

Updated fax acls.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Jan 2007 09:11:25 +0000 (09:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Jan 2007 09:11:25 +0000 (09:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5530 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/acl_definition.inc
plugins/gofax/faxaccount/class_gofaxAccount.inc

index 736f41446cb495160e43cab22776446ec4c6290c..19e7305f50c1b898027a482e1a4a945db6738aa0 100644 (file)
@@ -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"
index 2984ce068f58caf3672970aaf2d72f7dc4e6e381..ea68073ee3c2c1ba14557247b2c5f3d200e118fc 100644 (file)
@@ -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
      */