diff --git a/app/Http/Requests/Portal/InvoiceShow.php b/app/Http/Requests/Portal/InvoiceShow.php index 73c528181..7ac751f50 100644 --- a/app/Http/Requests/Portal/InvoiceShow.php +++ b/app/Http/Requests/Portal/InvoiceShow.php @@ -17,6 +17,11 @@ class InvoiceShow extends FormRequest return true; } + // Allow admin to see signed invoice + if (user()->can('read-sales-invoices')) { + return true; + } + return $this->invoice->contact_id == user()->contact->id; }