summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-12-16 15:33:41 +0100
committerRobin Appelman <robin@icewind.nl>2019-12-16 15:33:41 +0100
commit170660840beeff175a79fd738b411be8f065f381 (patch)
tree3c8ad1803eb8c8bd8ac00095de6b039084c7cc34 /apps/provisioning_api
parent97deaf85b9d18cabfc345025ef273da24006c6de (diff)
downloadnextcloud-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.php2
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;