From 80323148d2d2b5e6ae9b5ff5d7e0009be65a1908 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 21 Oct 2026 00:09:30 +0200 Subject: [PATCH] fix: hide sign out of admin for stalwart admins signed in automatically --- components/admin/admin-shell.tsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/components/admin/admin-shell.tsx b/components/admin/admin-shell.tsx index be54548f6..857f577ca 100644 --- a/components/admin/admin-shell.tsx +++ b/components/admin/admin-shell.tsx @@ -215,22 +215,22 @@ export function AdminShell({ authenticated, isStalwartAutoLogin, configReadOnly, // The admin session is its own: a password admin signs out of the panel, // not of their mailbox, so these stay with the panel rather than the rail. + // A Stalwart admin signed in automatically has neither a password to change + // nor a session worth ending, since opening the panel signs them back in. const sessionLinks = (mobile: boolean) => ( <> - {!isStalwartAutoLogin && ( - - - Change password - - )} + + + Change password +