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.imap_functions.inc.php

    r5862 r5864  
    43894389        { 
    43904390                $useracl = $params['user']; 
    4391  
    4392                 $return = array(); 
    4393                 $return[$useracl] = 'false'; 
    4394                 $mbox_stream = $this->open_mbox(); 
    4395                 $mbox_acl = imap_getacl($mbox_stream, 'INBOX'); 
    4396  
    4397                 foreach ($mbox_acl as $user => $acl) 
    4398                 { 
    4399                         if (($user != $this->username) && ($user == $useracl)) 
    4400                         { 
    4401                                 $return[$user] = $acl; 
    4402                         } 
    4403                 } 
    4404                 return $return; 
    4405         } 
    4406  
    4407         function getacltouser($user) 
    4408         { 
    44094391                $return = array(); 
    44104392                $mbox_stream = $this->open_mbox(); 
     4393                if($params['getShared']){                
     4394                         $mbox_acl = imap_getacl($mbox_stream, 'user'.$this->imap_delimiter.$useracl);           
     4395                        foreach ($mbox_acl as $user => $acl) 
     4396                        { 
     4397                                if (($user == $this->username) && ($user != $useracl)) 
     4398                                { 
     4399                                        $return[$useracl] = $acl; 
     4400                                } 
     4401                        }                         
     4402                }else {  
     4403                        $mbox_acl = imap_getacl($mbox_stream, 'INBOX'); 
     4404                        foreach ($mbox_acl as $user => $acl) 
     4405                        { 
     4406                                if (($user != $this->username) && ($user == $useracl)) 
     4407                                { 
     4408                                        $return[$user] = $acl; 
     4409                                } 
     4410                        } 
     4411                } 
     4412                if(count($return) == 0) 
     4413                                $return[$useracl] = 'false'; 
     4414                                 
     4415                return $return; 
     4416        } 
     4417 
     4418        function getacltouser($user) 
     4419        { 
     4420                $return = array(); 
     4421                $mbox_stream = $this->open_mbox();       
     4422                 
    44114423                //Alterado, antes era 'imap_getacl($mbox_stream, 'user'.$this->imap_delimiter.$user); 
    44124424                //Afim de tratar as pastas compartilhadas, verificandos as permissoes de operacao sobre as mesmas 
     
    44164428                else 
    44174429                  $mbox_acl = @imap_getacl($mbox_stream, $user); 
     4430                 
    44184431                if(isset($mbox_acl[$this->username])) 
    44194432                return $mbox_acl[$this->username]; 
Note: See TracChangeset for help on using the changeset viewer.