Merge pull request #2028 from denisdulici/master

Admin not able to print/pdf signed invoice
This commit is contained in:
Denis Duliçi
2021-05-07 15:06:30 +03:00
committed by GitHub

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