Skip to content

[Due for payment 2026-07-29] Workspace - Not here page opens after payments admin clicks Update workspace currency #95560

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Workflows.
  3. Click Add bank account.
  4. 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.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7202557_1783494272821.6.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7202557

Issue OwnerCurrent Issue Owner: @Pujan92

Activity

  1. added
    DeployBlockerCash
    on Jul 8, 2026
  2. applause-bot commented on Jul 8, 2026

    @applause-bot
    Author

    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

  3. added
    Bug
    on Jul 8, 2026
  4. melvin-bot commented on Jul 8, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #92787

  5. melvin-bot commented on Jul 8, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  7. MelvinBot commented on Jul 8, 2026

    @MelvinBot
    Contributor

    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 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
    1. Payments admin (canWritePayments=true, isPolicyAdmin=false) opens Workflows on a non-USD manual-reimbursement workspace.
    2. shouldShowPayer is 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).
    3. No bank account set up → the canWritePayments-gated "Add bank account" MenuItem renders (L745).
    4. Currency is unsupported → confirm modal with "Update workspace currency" (L754-L764).
    5. Confirm → confirmCurrencyChangeAndHideModal() navigates to WORKSPACE_OVERVIEW_CURRENCY (L225-L230).
    6. WorkspaceOverviewCurrencyPage enforces ACCESS_VARIANTS.ADMIN → canEditWorkspaceSettings → isPolicyAdmin returns false → shouldShowNotFoundPage → NotFoundPage renders.

    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.

  8. deleted a comment from on Jul 8, 2026
  9. deleted a comment from melvin-bot on Jul 8, 2026
  10. assigned and unassigned on Jul 8, 2026
  11. 11 remaining items

  12. Pujan92 commented on Jul 13, 2026

    @Pujan92
    Contributor
    Image

    @trjExpensify Not sure whether this message(Only INR[workspaceOutputCurrencyCode] bank accounts can be added) looks correct, so asked here?

  13. trjExpensify commented on Jul 13, 2026

    @trjExpensify
    Contributor

    Cool, let's talk in that thread to finalise the copy.

  14. added
    Daily
    and removed
    Reviewing
    Weekly
    on Jul 22, 2026
  15. 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
  16. melvin-bot commented on Jul 22, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Jul 22, 2026

    @melvin-bot

    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:

    • @Pujan92 requires payment through NewDot Manual Requests
    • @ShridharGoel does not require payment (Contractor)
  18. melvin-bot commented on Jul 22, 2026

    @melvin-bot

    @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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions