Changeset 7962 for branches


Ignore:
Timestamp:
03/05/13 16:49:11 (6 years ago)
Author:
douglas
Message:

Ticket #3364 - Falha ao importar um evento via expresso Mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/interceptors/DBMapping.php

    r7958 r7962  
    168168  
    169169    public function schedulableSecurity(&$uri, &$params, &$criteria, $original)  
    170     {  
    171         $security = 'schedulable.id = calendarToSchedulable.schedulable';  
    172         $security .= ' AND calendar.id = calendarToSchedulable.calendar';  
    173         $security .= ' AND calendar.id = calendarSignature.calendar';  
    174         $security .= ' AND calendarSignature.user = ' . base64_encode(Config::me('uidNumber'));  
     170    { 
     171        if( !isset($criteria['filter'][1]) || !$criteria['filter'][1] == 'uid')  
     172        {  
     173            $security = 'schedulable.id = calendarToSchedulable.schedulable';  
     174            $security .= ' AND calendar.id = calendarToSchedulable.calendar';  
     175            $security .= ' AND calendar.id = calendarSignature.calendar';  
     176            $security .= ' AND calendarSignature.user = ' . base64_encode(Config::me('uidNumber'));  
    175177  
    176         $criteria['condition'] = $security;  
     178            $criteria['condition'] = $security;  
     179        }  
     180   
    177181    }  
    178182  
Note: See TracChangeset for help on using the changeset viewer.