summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-05-21 15:05:38 +0200
committerGitHub <noreply@github.com>2021-05-21 15:05:38 +0200
commitb1ad3faf14140e3c85a7eec1dade88cd551cc747 (patch)
tree9e0cf55364960d052ba99f8417e63a5fadd054a8 /apps/files
parent4aae71cd77e5117f06cabcc8a3933328f2df6533 (diff)
parent81964200639c585ff523c6303fdb99eb0c7c180c (diff)
downloadnextcloud-server-b1ad3faf14140e3c85a7eec1dade88cd551cc747.tar.gz
nextcloud-server-b1ad3faf14140e3c85a7eec1dade88cd551cc747.zip
Merge pull request #25679 from nextcloud/drop/ocp-user
Drop \OCP\User
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/ajax/download.php2
-rw-r--r--apps/files/recentlist.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php
index 445b15dc6a7..f87e05f45e0 100644
--- a/apps/files/ajax/download.php
+++ b/apps/files/ajax/download.php
@@ -29,7 +29,7 @@
*/
// Check if we are a user
-OCP\User::checkLoggedIn();
+OC_Util::checkLoggedIn();
\OC::$server->getSession()->close();
$files = isset($_GET['files']) ? (string)$_GET['files'] : '';
diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php
index 55ca3d48449..74727235766 100644
--- a/apps/files/recentlist.php
+++ b/apps/files/recentlist.php
@@ -23,7 +23,7 @@
*
*/
// Check if we are a user
-OCP\User::checkLoggedIn();
+OC_Util::checkLoggedIn();
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();