Skip to content
Snippets Groups Projects
Commit cdf5d4e2 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

fix for previous commit

parent 0ce1cbdd
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('calendar');
$calendar = OC_Calendar_App::getCalendar($_GET['calendar_id'], false, false);
if($calendar['userid'] != OCP\User::getUser){
if(is_numeric($calendar['userid']) && $calendar['userid'] != OCP\User::getUser){
OCP\JSON::error();
exit;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment