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:
Benjamin Beganović 2021-05-10 14:46:57 +02:00 committed by GitHub
commit 925d1481e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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