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/bookmarks/index.php')
-rw-r--r--apps/bookmarks/index.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/bookmarks/index.php b/apps/bookmarks/index.php
index ba9f7cc0c61..45c9a52f557 100644
--- a/apps/bookmarks/index.php
+++ b/apps/bookmarks/index.php
@@ -24,10 +24,7 @@
require_once('../../lib/base.php');
// Check if we are a user
-if( !OC_User::isLoggedIn()){
- header( "Location: ".OC_Helper::linkTo( '', 'index.php' ));
- exit();
-}
+OC_Util::checkLoggedIn();
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
@@ -36,4 +33,4 @@ OC_Util::addStyle('bookmarks', 'bookmarks');
$tmpl = new OC_Template( 'bookmarks', 'list', 'user' );
-$tmpl->printPage(); \ No newline at end of file
+$tmpl->printPage();