don't delete shared calendars

master
Georg Ehrke 2013-06-11 14:38:32 +02:00
parent 1e0d9fc5b3
commit 01bfa7901d
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ class OC_Calendar_Hooks{
$calendars = OC_Calendar_Calendar::allCalendars($parameters['uid']);
foreach($calendars as $calendar) {
OC_Calendar_Calendar::deleteCalendar($calendar['id']);
if($parameters['uid'] === $calendar['userid']) {
OC_Calendar_Calendar::deleteCalendar($calendar['id']);
}
}
return true;