Skip to content

Commit

Permalink
Bug: 12524 Only remove events created by the user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 2, 2014
1 parent de6d061 commit d765225
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kronolith/lib/Kronolith.php
Expand Up @@ -2917,7 +2917,9 @@ static public function removeUserEvents($user)
}
foreach ($uids as $uid) {
$event = $driver->getByUID($uid, array($calendar));
$driver->deleteEvent($event->id);
if ($event->creator == $user) {
$driver->deleteEvent($event->id);
}
}
}
}
Expand Down

0 comments on commit d765225

Please sign in to comment.