- Timestamp:
- 04/23/12 15:34:17 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r5953 r5998 761 761 762 762 $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 765 767 foreach ($calendarsToSchedulable as $i => $v) 766 768 { … … 1038 1040 .' AND calendar_to_calendar_object.calendar_object_id = '.addslashes($Schedulable)); 1039 1041 } 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 1041 1048 } 1042 1049
Note: See TracChangeset
for help on using the changeset viewer.