mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix for previous commit
This commit is contained in:
parent
0ce1cbdd14
commit
cdf5d4e231
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue