mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix login check in ajax files
This commit is contained in:
parent
486694c2ec
commit
cb445deb5f
3 changed files with 9 additions and 3 deletions
|
|
@ -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…
Reference in a new issue