Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 20:46:15 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 20:46:15 +0400
commit5bf69237b2471df9ee979200b19e0ce203df2a31 (patch)
tree3ad707ac9af71a1edb4d3101dd6b16dbde05b716 /apps/calendar
parentd0554bef069b29affa95ec3c2bf78af637703a90 (diff)
ported isLoggedIn
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/ajax/event/edit.form.php2
-rw-r--r--apps/calendar/ajax/event/new.form.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/ajax/event/edit.form.php b/apps/calendar/ajax/event/edit.form.php
index e963da32958..e2b23d71f9b 100644
--- a/apps/calendar/ajax/event/edit.form.php
+++ b/apps/calendar/ajax/event/edit.form.php
@@ -8,7 +8,7 @@
-if(!OC_USER::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
OC_JSON::checkAppEnabled('calendar');
diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php
index 62087e9a817..155e3dc371e 100644
--- a/apps/calendar/ajax/event/new.form.php
+++ b/apps/calendar/ajax/event/new.form.php
@@ -8,7 +8,7 @@
-if(!OC_USER::isLoggedIn()) {
+if(!OCP\User::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>');
}
OC_JSON::checkAppEnabled('calendar');