mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #5660 from beganovich/v5-1005-hide-deleted-credits-in-client-portal
(v5) Block viewing deleted credit in the client portal
This commit is contained in:
commit
925d1481e8
@ -13,7 +13,7 @@ class ShowCreditRequest extends FormRequest
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return true;
|
||||
return !$this->credit->is_deleted;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user