Skip to content

Commit

Permalink
[SHIBUI-1029]
Browse files Browse the repository at this point in the history
Removed two unused classes.
Removed unnecessary 403-related response code.
  • Loading branch information
Bill Smith committed Jan 22, 2019
1 parent b3eed9c commit 778fccf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
user = persistedUser.get();
}
if (user.getRole().equals(ROLE_NONE)) {
response.setContentType(ContentType.APPLICATION_JSON.getMimeType());
((HttpServletResponse) response).setStatus(HttpStatus.FORBIDDEN.value());
response.getOutputStream().write(getJsonResponseBytes(
new ErrorResponse(String.valueOf(HttpStatus.FORBIDDEN.value()),
"Your account is not yet authorized to access ShibUI.")));
((HttpServletResponse) response).sendRedirect("/static.html");
} else {
chain.doFilter(request, response); // else, user is in the system already, carry on
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 778fccf

Please sign in to comment.