Changeset 7932


Ignore:
Timestamp:
03/01/13 10:58:27 (6 years ago)
Author:
cristiano
Message:

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

File:
1 edited

Legend:

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

    r7861 r7932  
    169169    public function schedulableSecurity(&$uri, &$params, &$criteria, $original) 
    170170    { 
    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')); 
    175  
    176         $criteria['condition'] = $security; 
     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')); 
     177 
     178            $criteria['condition'] = $security; 
     179        } 
     180 
    177181    } 
    178182 
Note: See TracChangeset for help on using the changeset viewer.