admin not able to print/pdf signed invoice
This commit is contained in:
parent
9872d30eef
commit
b07decb4c3
@ -17,6 +17,11 @@ class InvoiceShow extends FormRequest
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow admin to see signed invoice
|
||||||
|
if (user()->can('read-sales-invoices')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return $this->invoice->contact_id == user()->contact->id;
|
return $this->invoice->contact_id == user()->contact->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user