Block viewing deleted credit in the client portal

This commit is contained in:
Benjamin Beganović 2021-05-10 14:46:22 +02:00
parent 0b48630cd7
commit d28bc96b99

View File

@ -13,7 +13,7 @@ class ShowCreditRequest extends FormRequest
*/ */
public function authorize() public function authorize()
{ {
return true; return !$this->credit->is_deleted;
} }
/** /**