Skip to content

Commit

Permalink
Merge pull request #210 from Amsterdam/dpsecure-secupgrade
Browse files Browse the repository at this point in the history
Proper handling of access denied exception when not matching expected
  • Loading branch information
maartendekeizer authored Aug 3, 2020
2 parents c7cbe93 + e378827 commit 56323a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Security/AccessDeniedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ public function handle(Request $request, AccessDeniedException $accessDeniedExce
'message' => 'Gebruikerstype is onbekend. [' . $user->getEmail() . ']',
]), Response::HTTP_FORBIDDEN);
}

return new Response($accessDeniedException->getMessage(), Response::HTTP_FORBIDDEN);
}
}

0 comments on commit 56323a8

Please sign in to comment.