Browse Source

Merge pull request #18431 from nextcloud/prov-api-query-application

query FederatedFileSharing Application instead of creating it
pull/18438/head
Roeland Jago Douma 6 years ago
committed by GitHub
parent
commit
9fee1d9851
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/provisioning_api/lib/Controller/UsersController.php

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