fixed signed routes
This commit is contained in:
parent
e02a286f92
commit
e9c3cd8c82
@ -13,6 +13,10 @@ class InvoiceShow extends FormRequest
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
if (auth()->guest()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->invoice->contact_id == user()->contact->id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user