Commit f05189c
fix: verify buyer ownership before entering the setinvoice flow (#833)
The addInvoicePHI handler and the setinvoice_ action looked up the order
by the id carried in the callback data and then entered the invoice flow
without checking that the caller is the order's buyer. Add an explicit
check that ctx.user is the buyer in both entry points, so only the buyer
can set or replace the payout invoice of their order.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5d0cae2 commit f05189c
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
671 | 676 | | |
672 | 677 | | |
673 | 678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
898 | 903 | | |
899 | 904 | | |
900 | 905 | | |
| |||
0 commit comments