diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c8f870..0f5dbff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres +to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [unreleased] @@ -45,16 +45,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [7.0.3] - 2021-10-17 ### Added + - Block unhallowed find & findOfFail relations - Update/add new base exceptions - .gitignore ### Fixed + - Fix base softDeletes service functions ### Changed + - Remove request param from destroy controller function - Remove request param from softDeletes controller functions ### Removed + - ./idea directory + +## [7.0.3.1] - 2021-10-17 + +### Fixed + +- Fix access denied exception \ No newline at end of file diff --git a/src/Exceptions/CoreHandler.php b/src/Exceptions/CoreHandler.php index 06c4b9d..51dccce 100644 --- a/src/Exceptions/CoreHandler.php +++ b/src/Exceptions/CoreHandler.php @@ -53,7 +53,7 @@ public function render($request, Throwable $exception) ], 404); } - if (exception instanceof AccessDeniedHttpException) { + if ($exception instanceof AccessDeniedHttpException) { return response()->json([ 'message' => trans('core::message.no_permission'), 'error' => trans('core::message.access_denied')