Ignore:
Timestamp:
04/23/12 15:34:17 (12 years ago)
Author:
cristiano
Message:

Ticket #2640 - Problemas com eventos no módulo ExpressoCalendar?

File:
1 edited

Legend:

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

    r5953 r5998  
    761761 
    762762        $calendarsToSchedulable = self::schedulable2calendarToObject($uri['id']); 
    763         if( !self::ownerSchedulable($uri['id']) ) 
    764         {            
     763         
     764        if( !self::ownerSchedulable($uri['id']) && !self::isAllowDeleteInCalendar($calendarsToSchedulable[0]['calendar_id'])) 
     765        { 
     766             
    765767             foreach ($calendarsToSchedulable as $i => $v) 
    766768             { 
     
    10381040                .' AND calendar_to_calendar_object.calendar_object_id = '.addslashes($Schedulable)); 
    10391041    } 
    1040                     
     1042                 
     1043    protected static function isAllowDeleteInCalendar( $calendar ) { 
     1044         $f = Controller::find(array('concept' => 'calendarToPermission') , false , array('filter' => array('AND' , array('=', 'user' , Config::me('uidNumber') ) , array('=', 'calendar' , $calendar))));        
     1045         return (strpos($f[0]['acl'], CALENDAR_ACL_REMOVE) === false) ? false : true;         
     1046    } 
     1047     
    10411048} 
    10421049 
Note: See TracChangeset for help on using the changeset viewer.