source: sandbox/newExpressoMail/prototype/modules/newMail2/interceptors/FollowupflagSecure.php @ 7210

Revision 7210, 494 bytes checked in by gustavo, 12 years ago (diff)

Ticket #0000 - Criado novo modulo para o desenvolvimento do novo ExpressoMail?

  • Property svn:executable set to *
Line 
1<?php
2
3use prototype\api\Config as Config;
4
5class FollowupflagSecure {     
6       
7        //followupflag:before.find
8        public function addVerifyOwnerFilter (&$uri , &$params , &$criteria , $original ){
9               
10                $ownerFilter = array( '=' , 'uid' , Config::me('uidNumber') );
11               
12                if (isset($criteria['filter']) && $criteria['filter']!=NULL && count($criteria['filter']) != 0)
13                        $criteria['filter'] = array( 'AND', $criteria['filter'], $ownerFilter );
14                else
15                        $criteria['filter'] =  $ownerFilter;
16                       
17        } 
18
19}
20
21?>
Note: See TracBrowser for help on using the repository browser.