private boolean allowUser = false;
private boolean allowAdmin = true;
public void init(FilterConfig config) throws ServletException {
try {
userRepository = new UserRepositoryDb(config.getServletContext());
} catch (Exception e) {
logger.error("Error while connecting to database",e);
throw new ServletException("Error while connecting to database",e);
}