Code

Fixed blocklistm remove acl check.
[gosa.git] / gosa-plugins / gofax / gofax / blocklists / class_blocklistManagement.inc
index cfe2f55e12fd5728f53995f28c69b842f8f9433c..8d2d9b6fe4190761db61b0782a34c983d2f9e4cc 100644 (file)
@@ -147,6 +147,12 @@ class blocklist extends plugin
           $this->dn= "";
           $this->dialog = NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->dialog instanceof tabs){
+            $this->dialog->re_init();
+          }
         }
       } else {
         /* Errors found, show message */
@@ -214,7 +220,7 @@ class blocklist extends plugin
           $this->dns[$id] = $dn;
         }
 
-        $dns_names[] = array();
+        $dns_names = array();
         foreach($this->dns as $dn){
           add_lock ($dn, $this->ui->dn);
           $dns_names[]=@LDAP::fix( $dn);
@@ -237,8 +243,8 @@ class blocklist extends plugin
 
       /* Remove user by user and check acls before removeing them */
       foreach($this->dns as $key => $dn){
+        $this->dn = $dn;
         if (preg_match("/d/",$this->ui->get_permissions($this->dn,"gofaxlist/blocklistGeneric"))){
-          $this->dn = $dn;
           $this->dialog = new faxblocktabs($this->config,$this->config->data['TABS']['FAXBLOCKTABS'],$this->dn);
           $this->dialog->delete();
           $this->dialog = NULL;