Changeset 7067


Ignore:
Timestamp:
08/20/12 11:05:48 (10 years ago)
Author:
marcosw
Message:

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

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

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

    r7016 r7067  
    21592159                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
    21602160                /* 
    2161                  *   l - lookup (mailbox is visible to LIST/LSUB commands) 
    2162                  *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox) 
    2163                  *   s - keep seen/unseen information across sessions (STORE SEEN flag) 
    2164                  *   w - write (STORE flags other than SEEN and DELETED) 
    2165                  *   i - insert (perform APPEND, COPY into mailbox) 
    2166                  *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself) 
    2167                  *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy) 
    2168                  *   d - delete (STORE DELETED flag, perform EXPUNGE) 
    2169                  *   a - administer (perform SETACL) 
     2161                        * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to. 
     2162                        * r - read - Mailbox can be opened for reading. 
     2163                        * w - write - Message flags and keywords can be changed, except \Seen and \Deleted 
     2164                        * s - write-seen - \Seen flag can be changed 
     2165                        * t - write-deleted - \Deleted flag can be changed 
     2166                        * i - insert - Messages can be written or copied to the mailbox 
     2167                        * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts 
     2168                        * e - expunge - Messages can be expunged 
     2169                        * 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) 
     2170                        * x - delete - Mailbox can be deleted 
     2171                        * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)  
    21702172                        */ 
    2171                         if (strpos($acl, "d") === false){ 
     2173                        if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){ 
    21722174                                $return['status'] = false; 
    21732175                        } 
     
    21762178                return $return; 
    21772179        } 
    2178  
    21792180 
    21802181        function refresh($params) 
     
    34743475                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
    34753476                /* 
    3476                  *   l - lookup (mailbox is visible to LIST/LSUB commands) 
    3477                  *   r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL, SEARCH, COPY from mailbox) 
    3478                  *   s - keep seen/unseen information across sessions (STORE SEEN flag) 
    3479                  *   w - write (STORE flags other than SEEN and DELETED) 
    3480                  *   i - insert (perform APPEND, COPY into mailbox) 
    3481                  *   p - post (send mail to submission address for mailbox, not enforced by IMAP4 itself) 
    3482                  *   c - create (CREATE new sub-mailboxes in any implementation-defined hierarchy) 
    3483                  *   d - delete (STORE DELETED flag, perform EXPUNGE) 
    3484                  *   a - administer (perform SETACL) 
     3477                        * l - lookup - Mailbox is visible in mailbox list. Mailbox can be subscribed to. 
     3478                        * r - read - Mailbox can be opened for reading. 
     3479                        * w - write - Message flags and keywords can be changed, except \Seen and \Deleted 
     3480                        * s - write-seen - \Seen flag can be changed 
     3481                        * t - write-deleted - \Deleted flag can be changed 
     3482                        * i - insert - Messages can be written or copied to the mailbox 
     3483                        * p - post - Messages can be posted to the mailbox by LDA, e.g. from Sieve scripts 
     3484                        * e - expunge - Messages can be expunged 
     3485                        * 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) 
     3486                        * x - delete - Mailbox can be deleted 
     3487                        * a - admin - Administration rights to the mailbox (currently: ability to change ACLs for mailbox)  
    34853488                        */ 
    3486                         if (strpos($acl, "d") === false){ 
     3489                        if (strpos($acl, "x") === false || strpos($acl, "t") === false || strpos($acl, "e") === false){ 
    34873490                                $return['status'] = false; 
    34883491                                return $return; 
  • trunk/expressoMail1_2/js/main.js

    r7061 r7067  
    917917                                } 
    918918                        } 
     919 
     920                if(data.status == false){ 
     921                        write_msg(get_lang("You don't have permission for this operation in this shared folder!")); 
     922                        return false; 
     923                } 
     924 
    919925                if (show_success_msg){ 
    920                         if(data.status == false){ 
    921                                 write_msg(get_lang("You don't have permission for this operation in this shared folder!")); 
    922                                 return false; 
    923                         } 
    924                         else{ 
    925                                 if (data.msgs_number.length == 1) 
    926                                         write_msg(get_lang("The message was deleted.")); 
    927                                 else 
    928                                         write_msg(get_lang("The messages were deleted.")); 
    929                         } 
    930                 } 
     926                        if (data.msgs_number.length == 1) 
     927                                write_msg(get_lang("The message was deleted.")); 
     928                        else 
     929                                write_msg(get_lang("The messages were deleted.")); 
     930                } 
     931 
    931932                if (openTab.type[currentTab] > 1){ 
    932933                        var msg_to_delete = Element(msgs_number); 
Note: See TracChangeset for help on using the changeset viewer.