fix login check in ajax files

remotes/origin/stable
Georg Ehrke 13 years ago
parent 486694c2ec
commit cb445deb5f
  1. 4
      apps/calendar/ajax/editeventform.php
  2. 4
      apps/calendar/ajax/importdialog.php
  3. 4
      apps/calendar/ajax/neweventform.php

@ -8,7 +8,9 @@
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
OC_JSON::checkAppEnabled('calendar');
$id = $_GET['id'];

@ -10,7 +10,9 @@ require_once('../../../lib/base.php');
$l10n = new OC_L10N('calendar');
OC_JSON::checkLoggedIn();
if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
OC_JSON::checkAppEnabled('calendar');
$tmpl = new OC_Template('calendar', 'part.import');

@ -8,7 +8,9 @@
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
OC_JSON::checkAppEnabled('calendar');
if (!isset($_POST['start'])){

Loading…
Cancel
Save