summaryrefslogtreecommitdiffstats
path: root/apps/media/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/media/index.php')
-rw-r--r--apps/media/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/media/index.php b/apps/media/index.php
index fe724b45ddf..578ab7e3c34 100644
--- a/apps/media/index.php
+++ b/apps/media/index.php
@@ -25,10 +25,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();
require_once('lib_collection.php');
require_once('lib_scanner.php');