From: Georg Ehrke Date: Thu, 5 Jan 2012 20:02:11 +0000 (+0100) Subject: fix login check in ajax files X-Git-Tag: v3.0~60^2~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb445deb5f986da3a785999225d28ece4d043ec5;p=nextcloud-server.git fix login check in ajax files --- diff --git a/apps/calendar/ajax/editeventform.php b/apps/calendar/ajax/editeventform.php index a3870626326..95cae39c1c2 100644 --- a/apps/calendar/ajax/editeventform.php +++ b/apps/calendar/ajax/editeventform.php @@ -8,7 +8,9 @@ require_once('../../../lib/base.php'); -OC_JSON::checkLoggedIn(); +if(!OC_USER::isLoggedIn()) { + die(''); +} OC_JSON::checkAppEnabled('calendar'); $id = $_GET['id']; diff --git a/apps/calendar/ajax/importdialog.php b/apps/calendar/ajax/importdialog.php index 8d8430da7aa..983a3d95a84 100644 --- a/apps/calendar/ajax/importdialog.php +++ b/apps/calendar/ajax/importdialog.php @@ -10,7 +10,9 @@ require_once('../../../lib/base.php'); $l10n = new OC_L10N('calendar'); -OC_JSON::checkLoggedIn(); +if(!OC_USER::isLoggedIn()) { + die(''); +} OC_JSON::checkAppEnabled('calendar'); $tmpl = new OC_Template('calendar', 'part.import'); diff --git a/apps/calendar/ajax/neweventform.php b/apps/calendar/ajax/neweventform.php index 88468dd3dbf..3870c879b0e 100644 --- a/apps/calendar/ajax/neweventform.php +++ b/apps/calendar/ajax/neweventform.php @@ -8,7 +8,9 @@ require_once('../../../lib/base.php'); -OC_JSON::checkLoggedIn(); +if(!OC_USER::isLoggedIn()) { + die(''); +} OC_JSON::checkAppEnabled('calendar'); if (!isset($_POST['start'])){