Merge pull request #18431 from nextcloud/prov-api-query-application
query FederatedFileSharing Application instead of creating it
This commit is contained in:
commit
9fee1d9851
|
@ -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…
Reference in New Issue