aboutsummaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/deletecalendar.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2011-12-22 16:31:01 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2011-12-22 16:31:01 +0100
commit5e6fa608eb2d80cce3b1263eb68a8edcd1d0c05c (patch)
tree573495ff08282afdc666e162532b9278429f4854 /apps/calendar/ajax/deletecalendar.php
parent469e983a0222ce5cce282e26af9af47ce7100bd4 (diff)
downloadnextcloud-server-5e6fa608eb2d80cce3b1263eb68a8edcd1d0c05c.tar.gz
nextcloud-server-5e6fa608eb2d80cce3b1263eb68a8edcd1d0c05c.zip
use OC_JSON::checkLoggedIn() in all ajax files
Diffstat (limited to 'apps/calendar/ajax/deletecalendar.php')
-rw-r--r--apps/calendar/ajax/deletecalendar.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/calendar/ajax/deletecalendar.php b/apps/calendar/ajax/deletecalendar.php
index fc308da6dad..901cbbfcb08 100644
--- a/apps/calendar/ajax/deletecalendar.php
+++ b/apps/calendar/ajax/deletecalendar.php
@@ -7,9 +7,7 @@
*/
require_once('../../../lib/base.php');
-if(!OC_USER::isLoggedIn()) {
- die('<script type="text/javascript">document.location = oc_webroot;</script>');
-}
+OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar');
$cal = $_POST["calendarid"];