[Issue] Only deny customer access to order if it actually exists #38650
Labels
Issue: ready for confirmation
Priority: P3
May be fixed according to the position in the backlog.
Progress: PR in progress
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
This issue is automatically created based on existing pull request: #38647: Only deny customer access to order if it actually exists
Description (*)
This allows loading nonexistent orders by customer.
Before: loading an empty order as a customer would trigger this check resulting in "No such entity with orderId = ", as there is no orderId yet since it doesn't exist yet.
Which means the order should be allowed.
After: Loading an empty order results in the empty order being returned, if it is a preexisting order the old checks apply
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: