Commits

Sebastian Sdorra committed bf2a9bf

fix bug in SecurityFilter

  • Participants
  • Parent commits e737b29

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/security/SecurityFilter.java

 
         if (user != null)
         {
-          ((HttpServletResponse) res).sendError(
-              HttpServletResponse.SC_UNAUTHORIZED);
+          chain.doFilter(new ScmHttpServletRequest(request, user), res);
         }
         else
         {
-          chain.doFilter(new ScmHttpServletRequest(request, user), res);
+          ((HttpServletResponse) res).sendError(
+              HttpServletResponse.SC_UNAUTHORIZED);
         }
       }
       else