Skip to content

Commit

Permalink
#86: Fix SecurityFilters error code
Browse files Browse the repository at this point in the history
  • Loading branch information
rpokorny committed Nov 11, 2016
1 parent 521ad73 commit 4a66e96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class SecurityFilters {
securityAll(controller:'index', action:'index') {
before = {
if (!accountService.getLoggedInUserIsUser()) {
log.debug(accountService.getLoggedInUsername() + " does not have ROLE_USER role, erroring out with 401");
response.sendError(401)
log.debug(accountService.getLoggedInUsername() + " does not have ROLE_USER role, erroring out with 403");
response.sendError(403)
return false
}
try {
Expand Down

0 comments on commit 4a66e96

Please sign in to comment.