query FederatedFileSharing Application instead of creating it

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/18431/head
Robin Appelman 5 years ago
parent 97deaf85b9
commit 170660840b
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      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;

Loading…
Cancel
Save