Code

it wasn't permitted to create a new conference
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Sep 2005 11:05:49 +0000 (11:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Sep 2005 11:05:49 +0000 (11:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1346 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/conference/class_phoneConferenceGeneric.inc
plugins/gofon/conference/class_phoneConferenceManagment.inc

index 1ae62b9131c3587163a8cfcaacac78f8d260a6c2..a119c495dbdbef6d7e4483f969bfb5c2cb6b0a19 100644 (file)
@@ -109,8 +109,8 @@ class conference extends plugin
 
   function execute()
   {
-    $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
-    $this->acl= get_module_permission($acl, "goFonConference", $this->dn);
+    //$acl= get_permissions ($this->dn, $this->ui->subtreeACL);
+    //$this->acl= get_module_permission($acl, "goFonConference", $this->dn);
 
     $this->config->departments    = get_departments($this->dn);
     $this->config->make_idepartments();
index e4913b2f4092ae18f827e461169197a143415d94..112e54223eb37e1fb152aacbb80c0360bafd0262 100644 (file)
@@ -212,15 +212,21 @@ class phoneConferenceManagment extends plugin
 
       /* Register conftab to trigger edit dialog */
       $this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
-      $this->conftab->set_acl(array(":all"));
+      $this->conftab->set_acl($this->acl);
       $_SESSION['objectinfo']= $this->dn;
     }
 
     /* Insert new entry*/    
     if($s_action == "new"){
+      $this->dn= "new";
+      /* Set up the users ACL's for this 'dn' */
+      $this->acl= get_permissions ($this->dn, $this->ui->subtreeACL);
       $this->dn= "new";
       $this->conftab= new conferencetabs($this->config,$this->config->data['TABS']['CONFERENCETABS'], $this->dn);
+      $this->acl= get_permissions ($this->conftab->dn, $this->ui->subtreeACL);
+      $this->conftab->set_acl($this->acl);
       $this->conftab->set_acl(array(':all'));
+      $_SESSION['objectinfo']= $this->dn;
     }
 
     /* Edit finished, check and save changes */