James Moger
2012-10-18 13417cf9c6eec555b51da49742e47939d2f5715b
src/com/gitblit/AuthenticationFilter.java
@@ -103,7 +103,7 @@
         String credentials = new String(Base64.decode(base64Credentials),
               Charset.forName("UTF-8"));
         // credentials = username:password
         final String[] values = credentials.split(":");
         final String[] values = credentials.split(":",2);
         if (values.length == 2) {
            String username = values[0];
@@ -170,6 +170,7 @@
      public AuthenticatedRequest(HttpServletRequest req) {
         super(req);
         user = new UserModel("anonymous");
         user.isAuthenticated = false;
      }
      UserModel getUser() {
@@ -188,7 +189,7 @@
      @Override
      public boolean isUserInRole(String role) {
         if (role.equals(Constants.ADMIN_ROLE)) {
            return user.canAdmin;
            return user.canAdmin();
         }
         // Gitblit does not currently use actual roles in the traditional
         // servlet container sense.  That is the reason this is marked