You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-07-29] Workspace - Not here page opens after payments admin clicks Update workspace currency #95560
Version Number: 9.4.29-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#92787 Email or phone of affected tester (no customers):jsdionjsodjiosdjosjojdis2@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Workspace Settings
Action Performed:
Precondition:
Create a non-USD Control workspace.
Invite user as payments admin to the workspace.
Perform the steps below as payments admin:
Go to staging.new.expensify.com
Go to workspace settings > Workflows.
Click Add bank account.
Click Update workspace currency.
Expected Result:
Payments admin should receive a warning that payments admin cannot change workspace currency.
Actual Result:
Not here page opens after payments admin clicks Update workspace currency.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Root Cause: The "Add bank account" flow on the Workflows page is gated by payments-admin access, but the currency page it sends you to requires full workspace-admin access — so a payments admin who isn't a full admin lands on a Not Found page instead of a warning.
On a non-USD manual-reimbursement workspace, tapping Add bank account → Update workspace currency calls confirmCurrencyChangeAndHideModal, which navigates to WORKSPACE_OVERVIEW_CURRENCY. That destination, WorkspaceOverviewCurrencyPage.tsx:72, wraps itself in AccessOrNotFoundWrapper with accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN]}, which resolves to isPolicyAdmin via canEditWorkspaceSettings (PolicyUtils.ts:1344-1346). Meanwhile the button that starts the flow is gated only on canWritePayments (WorkspaceWorkflowsPage.tsx:745). A payments admin passes the button gate but fails the admin gate on the destination → Not Found.
PR #92787 surfaced this path by rendering the payer/bank-account section for manual-reimbursement workspaces (shouldShowPayer), exposing the pre-existing payments-admin-vs-admin mismatch to this new audience.
What changes do you think we should make in order to solve the problem?
Match the expected behavior in the report ("payments admin cannot change workspace currency"). Before navigating in confirmCurrencyChangeAndHideModal (or before showing the currency-change confirm option), check whether the current user is a full policy admin (isPolicyAdmin):
Not an admin → show a warning modal telling the payments admin they can't change the workspace currency and should ask a workspace admin, instead of routing to the admin-only currency page.
Admin → keep the current navigation to WORKSPACE_OVERVIEW_CURRENCY.
This is a frontend-only change scoped to WorkspaceWorkflowsPage.tsx and a new copy string in src/languages/*.
What alternative solutions did you explore? (Optional)
Relax the currency page's access variant to permit payments admins — rejected: changing the workspace currency is genuinely an admin-only setting, so the page's gate is correct; the bug is that we route a non-admin there.
Hide the "Update workspace currency" confirm button entirely for non-admins — viable, but a warning is more discoverable and matches the report's expected result.
Full evidence chain
Payments admin (canWritePayments=true, isPolicyAdmin=false) opens Workflows on a non-USD manual-reimbursement workspace.
Confidence: High — code path traced end-to-end with the access mismatch confirmed at both ends.
⚠️Security note for maintainers: the currency_patch.zip attachment posted above by an external, non-team account is unsolicited and untrusted — please do not download or apply it. The fix should come from a reviewed PR, not a random patch archive.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/95560) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
changed the title [-]Workspace - Not here page opens after payments admin clicks Update workspace currency[/-][+][Due for payment 2026-07-29] Workspace - Not here page opens after payments admin clicks Update workspace currency[/+]on Jul 22, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.41-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Pujan92 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon Jul 8, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/169f76ee1b6560fc05e3ede13a1e7358235f94e8901c0c7ab15ff5e3cfc54fd8
melvin-bot commentedon Jul 8, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #92787
melvin-bot commentedon Jul 8, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jul 8, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Jul 8, 2026
Proposal
Root Cause: The "Add bank account" flow on the Workflows page is gated by payments-admin access, but the currency page it sends you to requires full workspace-admin access — so a payments admin who isn't a full admin lands on a Not Found page instead of a warning.
On a non-USD manual-reimbursement workspace, tapping Add bank account → Update workspace currency calls
confirmCurrencyChangeAndHideModal, which navigates toWORKSPACE_OVERVIEW_CURRENCY. That destination,WorkspaceOverviewCurrencyPage.tsx:72, wraps itself inAccessOrNotFoundWrapperwithaccessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN]}, which resolves toisPolicyAdminviacanEditWorkspaceSettings(PolicyUtils.ts:1344-1346). Meanwhile the button that starts the flow is gated only oncanWritePayments(WorkspaceWorkflowsPage.tsx:745). A payments admin passes the button gate but fails the admin gate on the destination → Not Found.PR #92787 surfaced this path by rendering the payer/bank-account section for manual-reimbursement workspaces (
shouldShowPayer), exposing the pre-existing payments-admin-vs-admin mismatch to this new audience.What changes do you think we should make in order to solve the problem?
Match the expected behavior in the report ("payments admin cannot change workspace currency"). Before navigating in
confirmCurrencyChangeAndHideModal(or before showing the currency-change confirm option), check whether the current user is a full policy admin (isPolicyAdmin):WORKSPACE_OVERVIEW_CURRENCY.This is a frontend-only change scoped to
WorkspaceWorkflowsPage.tsxand a new copy string insrc/languages/*.What alternative solutions did you explore? (Optional)
Full evidence chain
canWritePayments=true,isPolicyAdmin=false) opens Workflows on a non-USD manual-reimbursement workspace.shouldShowPayeris true (REIMBURSEMENT_MANUAL), so the payer/bank-account section renders (added by [Payment due @dmkt9] Allow manual reimbursement workspaces to set and use a preferred payer #92787).canWritePayments-gated "Add bank account"MenuItemrenders (L745).confirmCurrencyChangeAndHideModal()navigates toWORKSPACE_OVERVIEW_CURRENCY(L225-L230).WorkspaceOverviewCurrencyPageenforcesACCESS_VARIANTS.ADMIN→canEditWorkspaceSettings→isPolicyAdminreturns false →shouldShowNotFoundPage→ NotFoundPage renders.Confidence: High — code path traced end-to-end with the access mismatch confirmed at both ends.
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/95560)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
11 remaining items
Pujan92 commentedon Jul 13, 2026
@trjExpensify Not sure whether this message(
Only INR[workspaceOutputCurrencyCode] bank accounts can be added) looks correct, so asked here?trjExpensify commentedon Jul 13, 2026
Cool, let's talk in that thread to finalise the copy.
[-]Workspace - Not here page opens after payments admin clicks Update workspace currency[/-][+][Due for payment 2026-07-29] Workspace - Not here page opens after payments admin clicks Update workspace currency[/+]melvin-bot commentedon Jul 22, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 22, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.41-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-07-29. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 22, 2026
@Pujan92 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]