summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/neweventform.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/neweventform.php')
-rw-r--r--apps/calendar/ajax/neweventform.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/calendar/ajax/neweventform.php b/apps/calendar/ajax/neweventform.php
index 7099ea718e9..9bab2cd4846 100644
--- a/apps/calendar/ajax/neweventform.php
+++ b/apps/calendar/ajax/neweventform.php
@@ -13,6 +13,7 @@ $l10n = new OC_L10N('calendar');
if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
+OC_JSON::checkAppEnabled('calendar');
$calendar_options = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
$category_options = OC_Calendar_Object::getCategoryOptions($l10n);