From f508cbb79dcc84d32eb30ae6f29feec58fe0b321 Mon Sep 17 00:00:00 2001 From: Marcus Funch Date: Sun, 1 Jun 2025 15:33:26 +0200 Subject: [PATCH] Always show 'Accounts' in the profile menu --- src/Content/Nav.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 4ca3564c6c..849bab6097 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -318,8 +318,12 @@ class Nav $nav['messages']['outbox'] = ['message/sent', $this->l10n->t('Outbox'), '', $this->l10n->t('Outbox')]; $nav['messages']['new'] = ['message/new', $this->l10n->t('New Message'), '', $this->l10n->t('New Message')]; + $nav_accounts_name = $this->l10n->t('Accounts'); + $nav_accounts_description = $this->l10n->t('Manage other accounts, including groups and pages'); if (User::hasIdentities($this->session->getSubManagedUserId() ?: $this->session->getLocalUserId())) { - $nav['delegation'] = ['delegation', $this->l10n->t('Accounts'), '', $this->l10n->t('Manage other accounts, including groups and pages')]; + $nav['delegation'] = ['delegation', $nav_accounts_name, '', $nav_accounts_description]; + } else { + $nav['delegation'] = ['settings/delegation', $nav_accounts_name, '', $nav_accounts_description]; } $nav['settings'] = ['settings', $this->l10n->t('Settings'), '', $this->l10n->t('Account settings')];