Skip to content

[Due for payment 2025-03-21] "Oops! Looks like you're submitting to yourself."... ALWAYS showing for reports on policies with policy?.preventSelfApproval === true #58128

@Beamanator

Description

@Beamanator

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: Latest
Reproducible in staging?: Yes
Reproducible in production?: No
Issue reported by: me
Slack conversation #expense

Action Performed:

  1. Create a policy with preventSelfApproval set to true
  2. Submit a report on that policy, where you know that the approver is NOT yourself

Expected Result:

Next Steps should mention that you're waiting on the correct approver

Actual Result:

We're always seeing the error message "Oops! Looks like you're submitting to yourself. Approving your own reports is forbidden by your policy. Please submit this report to someone else or contact your admin to change the person you submit to."

Workaround:

Can still submit fine, but i'm not sure if approvals work fine

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Christinadobrzyn

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions