|
|
@ -206,6 +206,10 @@ class OC_Connector_Sabre_CalDAV extends Sabre_CalDAV_Backend_Abstract { |
|
|
|
* @return void |
|
|
|
* @return void |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function deleteCalendar($calendarId) { |
|
|
|
public function deleteCalendar($calendarId) { |
|
|
|
|
|
|
|
if(preg_match( '=iCal/[1-4]?.*Mac OS X/10.[1-6](.[0-9])?=', $_SERVER['HTTP_USER_AGENT'] )){ |
|
|
|
|
|
|
|
throw new Sabre_DAV_Exception_Forbidden("Action is not possible with OSX 10.6.x", 403); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
OC_Calendar_Calendar::deleteCalendar($calendarId); |
|
|
|
OC_Calendar_Calendar::deleteCalendar($calendarId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|