mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Block viewing deleted credit in the client portal
This commit is contained in:
parent
0b48630cd7
commit
d28bc96b99
@ -13,7 +13,7 @@ class ShowCreditRequest extends FormRequest
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
return !$this->credit->is_deleted;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user