Ignore:
Timestamp:
04/03/12 09:24:37 (12 years ago)
Author:
douglasz
Message:

Ticket #2504 - Nao ter como criar sub pastas nas Pastas compartilhadas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r5821 r5864  
    883883        function getSharedUsersFrom($params){ 
    884884                $filter = ''; 
    885                 $i = 0;          
    886885                //Added to save if must save sent messages in shared folder 
    887886                $acl_save_sent_in_shared = array(); 
     
    890889                        $uids = explode(";",$params['uids']); 
    891890                        $this->imap = new imap_functions();                      
    892                         foreach($uids as $index => $uid){ 
     891                        foreach($uids as $index => $uid){                
     892                         
    893893                                $params = array(); 
    894894                                //Added to save if user has create permission  
    895895                                $acl_create_message = array(); 
    896                                 $acl = $this->imap->getacltouser($uid); 
    897                                 if ( preg_match("/a/",$acl )){                           
    898                                         $filter .= "(uid=$uid)";                                         
    899                                         if ( preg_match("/p/",$acl )){                           
    900                                                 $acl_save_sent_in_shared[ $i ] =$uid; 
    901                                                 $i++; 
    902                                         }                                        
    903                                 }                                                        
     896                                $user_arr = array(); 
     897                                $user_arr['user'] = $uid; 
     898                                $user_arr['getShared'] = true; 
     899                                $acl = $this->imap->getaclfromuser( $user_arr ); 
     900                                 
     901                                if($acl[$uid] != 'false'){ 
     902                                        if ( preg_match("/[pa]+.*[pa]+/",$acl[$uid])){   
     903                                                $filter .= "(uid=$uid)";                                                         
     904                                                $acl_save_sent_in_shared[] =$uid;                        
     905                                        }        
     906                                } 
    904907                        }                        
    905908                } 
     
    946949 
    947950                        $_SESSION['phpgw_info']['expressomail']['user']['shared_mailboxes'] = $info; 
    948                          
    949951                        return $info; 
    950952                } 
Note: See TracChangeset for help on using the changeset viewer.