Skip to content

[$250] Scan - "Delete" and "Replace" options are displayed for an admin which causes an error #47242

@lanitochka17

Description

@lanitochka17

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.19-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4845247
Email or phone of affected tester (no customers): htad26+foiotfy@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

Prerequisite
Create a workspace and invite an employee to the workspace
Login as an owner and employee

  1. As the employee navigate to the workspace chat and click on the + icon > Submit expense > Scan
  2. Upload a receipt and finish the flow
  3. After the expense is created navigate to the tab where you are logged in as the admin/owner
  4. Click on the receipt thumbnail
  5. Here notice that the "Delete" and "Replace" options are displayed
  6. Click on "Replace" > Choose another receipt > Upload > Notice that an error is thrown
  7. Click on "Delete" > Confirm > Notice that an error is thrown

Expected Result:

The workspace admin cannot edit the receipt file so there should not be "Delete" and "Replace" options

Actual Result:

"Delete" and "Replace" options are displayed and when performing these actions, an error is thrown

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6569955_1723471856291.2024-08-12_16_51_26.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a08abb02f6c6658f
  • Upwork Job ID: 1823152253036105130
  • Last Price Increase: 2024-08-13
Issue OwnerCurrent Issue Owner: @Pujan92

Metadata

Metadata

Labels

DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

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