diff options
author | Robin Appelman <robin@icewind.nl> | 2019-12-16 15:33:41 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-12-16 15:33:41 +0100 |
commit | 170660840beeff175a79fd738b411be8f065f381 (patch) | |
tree | 3c8ad1803eb8c8bd8ac00095de6b039084c7cc34 /apps/provisioning_api | |
parent | 97deaf85b9d18cabfc345025ef273da24006c6de (diff) | |
download | nextcloud-server-170660840beeff175a79fd738b411be8f065f381.tar.gz nextcloud-server-170660840beeff175a79fd738b411be8f065f381.zip |
query FederatedFileSharing Application instead of creating it
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 3b03f446717..7f239269262 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -489,7 +489,7 @@ class UsersController extends AUserData { } if ($this->appManager->isEnabledForUser('federatedfilesharing')) { - $federatedFileSharing = new \OCA\FederatedFileSharing\AppInfo\Application(); + $federatedFileSharing = \OC::$server->query(\OCA\FederatedFileSharing\AppInfo\Application::class); $shareProvider = $federatedFileSharing->getFederatedShareProvider(); if ($shareProvider->isLookupServerUploadEnabled()) { $permittedFields[] = AccountManager::PROPERTY_PHONE; |