Skip to content

Commit

Permalink
Fix/vic access denied exception (#28)
Browse files Browse the repository at this point in the history
* fix(exception): access denied $exception variable

* changelog: update
  • Loading branch information
txsoura committed Oct 17, 2021
1 parent 0225087 commit 6894a6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/Exceptions/CoreHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6894a6f

Please sign in to comment.