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