Changeset 5864 for trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
- Timestamp:
- 04/03/12 09:24:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r5821 r5864 883 883 function getSharedUsersFrom($params){ 884 884 $filter = ''; 885 $i = 0;886 885 //Added to save if must save sent messages in shared folder 887 886 $acl_save_sent_in_shared = array(); … … 890 889 $uids = explode(";",$params['uids']); 891 890 $this->imap = new imap_functions(); 892 foreach($uids as $index => $uid){ 891 foreach($uids as $index => $uid){ 892 893 893 $params = array(); 894 894 //Added to save if user has create permission 895 895 $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 } 904 907 } 905 908 } … … 946 949 947 950 $_SESSION['phpgw_info']['expressomail']['user']['shared_mailboxes'] = $info; 948 949 951 return $info; 950 952 }
Note: See TracChangeset
for help on using the changeset viewer.