admin not able to print/pdf signed invoice

This commit is contained in:
Denis Duliçi 2021-05-07 15:05:29 +03:00
parent 9872d30eef
commit b07decb4c3

View File

@ -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;
}