fix login check in ajax files

This commit is contained in:
Georg Ehrke 2012-01-05 21:02:11 +01:00
parent 486694c2ec
commit cb445deb5f
3 changed files with 9 additions and 3 deletions

View file

@ -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'];

View file

@ -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');

View file

@ -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'])){