summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/api.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-02 13:00:21 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-02 13:00:21 +0200
commit079e9cecbaa3c6f68db6f8b685ec41e078c94ff7 (patch)
tree6a356fff03f7b1004065c278d779dacc62b173eb /apps/files_external/lib/api.php
parentbfcb8ffeb3bf46963cb002feec07c08643ec9d82 (diff)
downloadnextcloud-server-079e9cecbaa3c6f68db6f8b685ec41e078c94ff7.tar.gz
nextcloud-server-079e9cecbaa3c6f68db6f8b685ec41e078c94ff7.zip
Revert "Use OCP classes as much as possible in files_external"
Diffstat (limited to 'apps/files_external/lib/api.php')
-rw-r--r--apps/files_external/lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/api.php b/apps/files_external/lib/api.php
index 015c15c41ff..b9435e33105 100644
--- a/apps/files_external/lib/api.php
+++ b/apps/files_external/lib/api.php
@@ -71,7 +71,7 @@ class Api {
*/
public static function getUserMounts($params) {
$entries = array();
- $user = \OC::$server->getUserSession()->getUser()->getUID();
+ $user = \OC_User::getUser();
$mounts = \OC_Mount_Config::getAbsoluteMountPoints($user);
foreach($mounts as $mountPoint => $mount) {