Skip to content

Approvers Flow - Admin can submit expense to self if this is forbidden #55845

@IuliiaHerets

Description

@IuliiaHerets

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.0.90-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5516593
Email or phone of affected tester (no customers): fischer9966+012825aadm@gmail.com
Issue reported by: Applause Internal Team
Device used: MacOS 14.7.2 - Safari, Chrome, Desktop. iPhone 15 Pro / 18.2.1. Google Pixel 5 / Android 14
App Component: Workspace Settings

Action Performed:

  1. Create Admin account with Gmail
  2. Create Collect workspace, set Workflows to enabled
  3. Enable Approvals in Workflows and set Admin account as Approver
  4. Enable Workflows > Delay submissions and set it to Manually
  5. Login to OldDot as Admin. Go to Workspace > Members
  6. Enable "Prevent Self-Approval" switch
  7. Login to NewDot as Admin.
  8. Submit expense from the workspace
  9. Click on the report that was created

Expected Result:

Admin can not submit expense to self if this is forbidden. The button is blocked.
There is a hour glass with a comment: "_Oops! Looks like you're submitting to yourself. Approving your own reports is forbidden by your policy."

Actual Result:

Admin CAN submit expense to self if this is forbidden. Button is not blocked. Admin can approve expense after Submit and get error.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6725905_1738052094873.55824-Admin-can-submit-if-forbidden.mp4

View all open jobs on GitHub

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions