aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/api.php
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2015-08-18 22:49:29 +0100
committerRobin McCorkell <rmccorkell@owncloud.com>2015-08-19 15:26:38 +0100
commitd577aad4ac876c1ed29f7b81199f607da581239b (patch)
tree55bca408402528a7fff2e4d5a0acb5aa7e4ee534 /apps/files_external/lib/api.php
parent5fd36d017ecdbce61dcf1c67ae04c8c0be81a4bf (diff)
downloadnextcloud-server-d577aad4ac876c1ed29f7b81199f607da581239b.tar.gz
nextcloud-server-d577aad4ac876c1ed29f7b81199f607da581239b.zip
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 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) {