skip scheduling attendees with schedule-agent set to something other than server

Signed-off-by: Rob Ostensen <rob@boxacle.net>
This commit is contained in:
Rob Ostensen 2011-09-12 20:56:28 -05:00 committed by Andrew McMillan
parent ddfcf8c766
commit b947e1c7e2

View File

@ -339,6 +339,11 @@ function do_scheduling_requests( vCalendar $resource, $create ) {
dbg_error_log( "PUT", "not delivering to owner" );
continue;
}
$agent = $attendee->GetParameterValue('SCHDEULE-AGENT');
if ( $agent && $agent != 'SERVER' ) {
dbg_error_log( "PUT", "not delivering to %s, schedule agent set to value other than server", $email );
continue;
}
$schedule_target = new Principal('email',$email);
if ( $schedule_target->Exists() ) {
$attendee_calendar = new WritableCollection(array('path' => $schedule_target->internal_url('schedule-default-calendar')));