fix wrong status codes

This commit is contained in:
Sebastian Sdorra
2011-02-22 16:02:05 +01:00
parent e85599ba6f
commit 54c21f6632

View File

@@ -111,11 +111,11 @@ public class SecurityFilter extends HttpFilter
} }
else if (securityContext.isAuthenticated()) else if (securityContext.isAuthenticated())
{ {
response.sendError(HttpServletResponse.SC_UNAUTHORIZED); response.sendError(HttpServletResponse.SC_FORBIDDEN);
} }
else else
{ {
response.sendError(HttpServletResponse.SC_FORBIDDEN); response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
} }
} }
else else