summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/api.php
diff options
context:
space:
mode:
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 b9435e33105..015c15c41ff 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_User::getUser();
+ $user = \OC::$server->getUserSession()->getUser()->getUID();
$mounts = \OC_Mount_Config::getAbsoluteMountPoints($user);
foreach($mounts as $mountPoint => $mount) {