ServletException {
final HttpServletResponse httpServletResponse =
(HttpServletResponse) response;
try {
final GeneralUser currentUser = userService.getCurrentUser();
if (null == currentUser) {
LOGGER.warning("The request has been forbidden");
httpServletResponse.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
final String currentUserEmail = currentUser.getEmail();
LOGGER.log(Level.FINER, "Current user email[{0}]", currentUserEmail);
if (users.isSoloUser(currentUserEmail)
|| users.isCollaborateAdmin()) {
chain.doFilter(request, response);