summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/api.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-20 13:09:12 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-20 13:09:12 +0100
commitd93bf3548226ab509f075a879ff71768e6b454b9 (patch)
tree78d95bd1a378d2c0eb8a35ffce6c6ac9f62d74bc /apps/files_external/lib/api.php
parent67893ca83998753e4c40114846c7169e3e534d74 (diff)
parentd577aad4ac876c1ed29f7b81199f607da581239b (diff)
downloadnextcloud-server-d93bf3548226ab509f075a879ff71768e6b454b9.tar.gz
nextcloud-server-d93bf3548226ab509f075a879ff71768e6b454b9.zip
Merge pull request #18408 from owncloud/ext-ocp
Use OCP classes as much as possible in files_external v2
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) {