Code

Fixed blocklistm remove acl check.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 May 2008 11:22:18 +0000 (11:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 May 2008 11:22:18 +0000 (11:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10888 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc

index 65b846e3ba89e1c112f1ab5118f8f252d8e22d11..8d2d9b6fe4190761db61b0782a34c983d2f9e4cc 100644 (file)
@@ -220,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);
@@ -243,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;