summaryrefslogtreecommitdiffstats
path: root/files/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/settings.php')
-rw-r--r--files/settings.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/files/settings.php b/files/settings.php
index 2bbcb2acd3a..c47eb130095 100644
--- a/files/settings.php
+++ b/files/settings.php
@@ -26,10 +26,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();
// Load the files we need
OC_Util::addStyle( "files", "files" );