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:
Diffstat (limited to 'apps/calendar/index.php')
-rw-r--r--apps/calendar/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/calendar/index.php b/apps/calendar/index.php
index c9fc9889d40..c93ea93bb6c 100644
--- a/apps/calendar/index.php
+++ b/apps/calendar/index.php
@@ -18,10 +18,7 @@
* MA 02111-1307 USA *
*************************************************/
require_once ("../../lib/base.php");
-if(!OC_USER::isLoggedIn()) {
- header("Location: " . OC_HELPER::linkTo("", "index.php"));
- exit;
-}
+OC_Util::checkLoggedIn();
// Create default calendar ...
$calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
if( count($calendars) == 0){