From 65af01c15cb3e525633c42657b88a5c60249760f Mon Sep 17 00:00:00 2001 From: crthpl Date: Mon, 9 Mar 2026 11:16:43 -0700 Subject: [PATCH] Fix transfer destination not showing other users when acting as another account When a Sudoer acts as another account, the transfer form compared fromAccountId against serverState.userId (the admin's own ID) instead of serverState.effectiveUserId (the acted-as user's ID), preventing "Other Users" from appearing in the Destination field. --- frontend/src/lib/components/forms/makeTransfer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/forms/makeTransfer.svelte b/frontend/src/lib/components/forms/makeTransfer.svelte index 3a7e47d8..c3d5ab4d 100644 --- a/frontend/src/lib/components/forms/makeTransfer.svelte +++ b/frontend/src/lib/components/forms/makeTransfer.svelte @@ -153,7 +153,7 @@ if (!fromAccountId) return []; // User-to-user transfers (only from main user account to other users) - return fromAccountId === serverState.userId + return fromAccountId === serverState.effectiveUserId ? [...serverState.accounts.values()] .filter((a) => a.isUser && a.id !== fromAccountId && isInCurrentUniverse(a.id)) .map((a) => a.id)