From d28bc96b990df10d56b8f5bae23898125617db6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 10 May 2021 14:46:22 +0200 Subject: [PATCH] Block viewing deleted credit in the client portal --- app/Http/Requests/ClientPortal/ShowCreditRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/ClientPortal/ShowCreditRequest.php b/app/Http/Requests/ClientPortal/ShowCreditRequest.php index 0de22c7e9ef9..a52f2fdc00fc 100644 --- a/app/Http/Requests/ClientPortal/ShowCreditRequest.php +++ b/app/Http/Requests/ClientPortal/ShowCreditRequest.php @@ -13,7 +13,7 @@ class ShowCreditRequest extends FormRequest */ public function authorize() { - return true; + return !$this->credit->is_deleted; } /**