Changeset 7016


Ignore:
Timestamp:
08/15/12 10:49:36 (12 years ago)
Author:
marcosw
Message:

Ticket #3025 - Correção para exibição correta de mensagem ao remover

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

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

    r7003 r7016  
    21542154                                         
    21552155                $return['status'] = true; 
     2156 
     2157                //Este bloco tem a finalidade de averiguar as permissoes para pastas compartilhadas 
     2158        if (substr($folder,0,4) == 'user'){ 
     2159                $acl = $this->getacltouser($folder, isset($params['decoded'])); 
     2160                /* 
     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) 
     2170                        */ 
     2171                        if (strpos($acl, "d") === false){ 
     2172                                $return['status'] = false; 
     2173                        } 
     2174        } 
     2175 
    21562176                return $return; 
    21572177        } 
  • trunk/expressoMail1_2/js/main.js

    r7014 r7016  
    913913                                } 
    914914                        } 
    915  
    916                 if (show_success_msg) { 
    917                         if (data.msgs_number.length == 1) 
    918                                 write_msg(get_lang("The message was deleted.")); 
    919                         else 
    920                                 write_msg(get_lang("The messages were deleted.")); 
     915                if (show_success_msg){ 
     916                        if(data.status == false){ 
     917                                write_msg(get_lang("You don't have permission for this operation in this shared folder!")); 
     918                                return false; 
     919                        } 
     920                        else{ 
     921                                if (data.msgs_number.length == 1) 
     922                                        write_msg(get_lang("The message was deleted.")); 
     923                                else 
     924                                        write_msg(get_lang("The messages were deleted.")); 
     925                        } 
    921926                } 
    922927                if (openTab.type[currentTab] > 1){ 
Note: See TracChangeset for help on using the changeset viewer.