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

Closed

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

Activity

  1. added
    Bug
    Daily
    on Mar 10, 2025
  2. melvin-bot commented on Mar 10, 2025

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. self-assigned this
    on Mar 10, 2025
  4. Beamanator commented on Mar 10, 2025

    @Beamanator
    ContributorAuthor
  5. Beamanator commented on Mar 10, 2025

    @Beamanator
    ContributorAuthor

    I'm working on a fix, cuz this should be a deploy blocker

  6. added
    DeployBlockerCash
    on Mar 10, 2025
  7. melvin-bot commented on Mar 10, 2025

    @melvin-bot

    Triggered auto assignment to @thienlnam (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  8. Beamanator commented on Mar 10, 2025

    @Beamanator
    ContributorAuthor
  9. melvin-bot commented on Mar 10, 2025

    @melvin-bot

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

  10. 9 remaining items

  11. Beamanator commented on Mar 11, 2025

    @Beamanator
    ContributorAuthor

    Done! looking good in staging! 👍

  12. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Mar 14, 2025
  13. changed the title [-]"Oops! Looks like you're submitting to yourself."... ALWAYS showing for reports on policies with `policy?.preventSelfApproval === true`[/-] [+][Due for payment 2025-03-21] "Oops! Looks like you're submitting to yourself."... ALWAYS showing for reports on policies with `policy?.preventSelfApproval === true`[/+] on Mar 14, 2025
  14. removed
    Reviewing
    on Mar 14, 2025
  15. melvin-bot commented on Mar 14, 2025

    @melvin-bot

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

  16. melvin-bot commented on Mar 14, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.12-7 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 2025-03-21. 🎊

  17. melvin-bot commented on Mar 14, 2025

    @melvin-bot

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

  18. allroundexperts commented on Mar 20, 2025

    @allroundexperts
    Contributor

    No payment due here as this was a regression.

  19. removed
    DeployBlockerCash
    on Apr 7, 2025
  20. added
    Reviewing
    Weekly
    and removed
    Weekly
    on Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions