aboutsummaryrefslogtreecommitdiffstats
path: root/files/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'files/download.php')
-rw-r--r--files/download.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/files/download.php b/files/download.php
index ccd3eb43d8e..c8a2692d015 100644
--- a/files/download.php
+++ b/files/download.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();
$filename = $_GET["file"];