summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Settings
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-10-22 11:52:56 +0200
committerGitHub <noreply@github.com>2021-10-22 11:52:56 +0200
commitc98039c1df19f8b53efea5b627d5e8f183ec77c3 (patch)
treefd4fef772d501f21573bdf1a16e30a68c907060d /apps/settings/lib/Settings
parent0a359376628b36256aa8332d79b1af1dfc513ce8 (diff)
parent193cf6cfde8a91e225947021e582997403074c78 (diff)
downloadnextcloud-server-c98039c1df19f8b53efea5b627d5e8f183ec77c3.tar.gz
nextcloud-server-c98039c1df19f8b53efea5b627d5e8f183ec77c3.zip
Merge pull request #26725 from nextcloud/fix-federated-scope-not-shown-when-public-addressbook-upload-is-disabled
Diffstat (limited to 'apps/settings/lib/Settings')
-rw-r--r--apps/settings/lib/Settings/Personal/PersonalInfo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php
index 40ce3b62e11..928c18998df 100644
--- a/apps/settings/lib/Settings/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php
@@ -107,6 +107,7 @@ class PersonalInfo implements ISettings {
}
public function getForm(): TemplateResponse {
+ $federationEnabled = $this->appManager->isEnabledForUser('federation');
$federatedFileSharingEnabled = $this->appManager->isEnabledForUser('federatedfilesharing');
$lookupServerUploadEnabled = false;
if ($federatedFileSharingEnabled) {
@@ -139,6 +140,7 @@ class PersonalInfo implements ISettings {
'usage_relative' => round($storageInfo['relative']),
'quota' => $storageInfo['quota'],
'avatarChangeSupported' => $user->canChangeAvatar(),
+ 'federationEnabled' => $federationEnabled,
'lookupServerUploadEnabled' => $lookupServerUploadEnabled,
'avatarScope' => $account->getProperty(IAccountManager::PROPERTY_AVATAR)->getScope(),
'displayNameChangeSupported' => $user->canChangeDisplayName(),