Changeset 7086 for branches


Ignore:
Timestamp:
08/21/12 17:08:55 (12 years ago)
Author:
eduardow
Message:

Ticket #3053 - Ralizado atualização de permissões IMAP para mover/excluir.

Location:
branches/2.4/expressoMail1_2
Files:
2 edited

Legend:

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

    r7050 r7086  
    21492149                    $acl = $this->getacltouser($folder, isset($params['decoded']));  
    21502150                    /*  
    2151                      *   l - lookup (mailbox is visible to LIST/LSUB commands)  
    2152                      *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox)  
    2153                      *   s - keep seen/unseen information across sessions (STORE SEEN flag)  
    2154                      *   w - write (STORE flags other than SEEN and DELETED)  
    2155                      *   i - insert (perform APPEND, COPY into mailbox)  
    2156                      *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself)  
    2157                      *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy)  
    2158                      *   d - delete (STORE DELETED flag, perform EXPUNGE)  
    2159                      *   a - administer (perform SETACL)  
    2160                             */  
    2161                             if (strpos($acl, "d") === false){  
     2151                     * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to.  
     2152                     * r - read - Mailbox can be opened for reading.  
     2153                     * w - write - Message flags and keywords can be changed, except \Seen and \Deleted  
     2154                     * s - write-seen - \Seen flag can be changed  
     2155                     * t - write-deleted - \Deleted flag can be changed  
     2156                     * i - insert - Messages can be written or copied to the mailbox  
     2157                     * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts  
     2158                     * e - expunge - Messages can be expunged  
     2159                     * k - create - Mailboxes can be created (or renamed) directly under this mailbox (but not necessarily under its children, see ACL Inheritance section above) (renaming also requires delete rights)  
     2160                     * x - delete - Mailbox can be deleted  
     2161                     * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)   
     2162                 */  
     2163                            if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){  
    21622164                                    $return['status'] = false;  
    21632165                            }  
     
    34113413                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
    34123414                /* 
    3413                  *   l - lookup (mailbox is visible to LIST/LSUB commands) 
    3414                  *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox) 
    3415                  *   s - keep seen/unseen information across sessions (STORE SEEN flag) 
    3416                  *   w - write (STORE flags other than SEEN and DELETED) 
    3417                  *   i - insert (perform APPEND, COPY into mailbox) 
    3418                  *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself) 
    3419                  *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy) 
    3420                  *   d - delete (STORE DELETED flag, perform EXPUNGE) 
    3421                  *   a - administer (perform SETACL) 
    3422                         */ 
    3423                         if (strpos($acl, "d") === false){ 
     3415                 * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to.  
     3416             * r - read - Mailbox can be opened for reading.  
     3417             * w - write - Message flags and keywords can be changed, except \Seen and \Deleted  
     3418             * s - write-seen - \Seen flag can be changed  
     3419             * t - write-deleted - \Deleted flag can be changed  
     3420             * i - insert - Messages can be written or copied to the mailbox  
     3421             * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts  
     3422             * e - expunge - Messages can be expunged  
     3423             * k - create - Mailboxes can be created (or renamed) directly under this mailbox (but not necessarily under its children, see ACL Inheritance section above) (renaming also requires delete rights)  
     3424             * x - delete - Mailbox can be deleted  
     3425             * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)   
     3426                         */ 
     3427                        if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){  
    34243428                                $return['status'] = false; 
    34253429                                return $return; 
  • branches/2.4/expressoMail1_2/js/main.js

    r7050 r7086  
    833833                                        } 
    834834                                } 
     835                        if(data.status == false){  
     836                    write_msg(get_lang("You don't have permission for this operation in this shared folder!"));  
     837                    return false;  
    835838                        } 
    836839 
    837840                if (show_success_msg){  
    838                 if(data.status == false){  
    839                         write_msg(get_lang("You don't have permission for this operation in this shared folder!"));  
    840                         return false;  
    841                 }  
    842                 else{  
    843                         if (data.msgs_number.length == 1)  
    844                                 write_msg(get_lang("The message was deleted."));  
    845                         else  
    846                                 write_msg(get_lang("The messages were deleted."));  
    847                 }  
    848                 } 
     841                if (data.msgs_number.length == 1)  
     842                            write_msg(get_lang("The message was deleted."));  
     843                    else  
     844                            write_msg(get_lang("The messages were deleted."));  
     845            } 
     846             
    849847                if (openTab.type[currentTab] > 1){ 
    850848                        var msg_to_delete = Element(msgs_number); 
Note: See TracChangeset for help on using the changeset viewer.