Commits

Sebastian Sdorra  committed 3d7de38

fix wrong return code

  • Participants
  • Parent commits c8d6037
  • Branches apache-shiro

Comments (0)

Files changed (1)

File scm-webapp/src/main/java/sonia/scm/filter/SecurityFilter.java

         chain.doFilter(new SecurityHttpServletRequestWrapper(request,
           subject.getPrincipals().oneByType(User.class)), response);
       }
+      else if (subject.isAuthenticated())
+      {
+        response.sendError(HttpServletResponse.SC_FORBIDDEN);
+      }
       else
       {
         response.sendError(HttpServletResponse.SC_UNAUTHORIZED);