Files
InvoiceShelf/app/Http/Controllers/V1
Darko Gjorgjijoski 3a1bfd3824 Add company ownership check to clone endpoints
Verify the source record belongs to the current company before cloning.
Previously, users could clone invoices/estimates from other companies,
leaking sensitive data (amounts, customer details, items, taxes, notes).

The view policy already includes hasCompany() check, so authorizing
view on the source record gates both ability and company ownership.

Ref #574
2026-04-03 14:25:43 +02:00
..
2026-03-21 18:59:53 +01:00
2026-03-21 18:59:53 +01:00
2026-03-21 18:59:53 +01:00
2026-03-21 18:59:53 +01:00