summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-17 05:33:07 +0100
committerGitHub <noreply@github.com>2018-01-17 05:33:07 +0100
commit0b464e527489488ed058cc80f6bb93e086eec681 (patch)
treed2d0002f3a86221a09cb8373fa382af5c807a7a9 /apps/federatedfilesharing
parentca2904a01778eab0bb595700d01df075bb4cf92f (diff)
parent55532f19d90b40f7f46354b92a5322676729ba7e (diff)
downloadnextcloud-server-0b464e527489488ed058cc80f6bb93e086eec681.tar.gz
nextcloud-server-0b464e527489488ed058cc80f6bb93e086eec681.zip
Merge pull request #7884 from nextcloud/cleanup-oc_user
Cleanup OC_User and OCP\User
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/Controller/RequestHandlerController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
index e0985f9aefc..a74342f1182 100644
--- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
+++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php
@@ -148,7 +148,7 @@ class RequestHandlerController extends OCSController {
);
\OCP\Util::writeLog('files_sharing', 'shareWith after, ' . $shareWith, \OCP\Util::DEBUG);
- if (!\OCP\User::userExists($shareWith)) {
+ if (!\OC::$server->getUserManager()->userExists($shareWith)) {
throw new OCSException('User does not exists', 400);
}