Changeset 6870 for branches/2.4


Ignore:
Timestamp:
07/24/12 15:37:57 (12 years ago)
Author:
eduardow
Message:

Ticket #2978 - Dificuldade no mapeamento de ACLs para ações de pastas compartilhadas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/inc/class.ldap_functions.inc.php

    r6859 r6870  
    896896                $acl_save_sent_in_shared = array(); 
    897897                 
     898                $acls = $this->imap->getacl(); 
     899 
    898900                if($params['uids']) { 
    899901                        $uids = explode(";",$params['uids']); 
     
    907909                                $user_arr['user'] = $uid; 
    908910                                $user_arr['getShared'] = true; 
    909                                 $acl = $this->imap->getaclfromuser( $user_arr ); 
    910911                                 
    911                                 if($acl[$uid] != 'false'){ 
    912                                         if ( preg_match("/[pa]+.*[pa]+/",$acl[$uid])){   
     912                                if(isset($acls[$uid])){  
     913                            if ( preg_match("/[pa]+/",$acls[$uid]['acls'])){     
    913914                                                $filter .= "(uid=$uid)";                                                         
    914915                                                $acl_save_sent_in_shared[] =$uid;                        
Note: See TracChangeset for help on using the changeset viewer.