James Moger
2012-06-06 3f8cd414769b513a5b0815e0da21f19fe4b1f2d8
src/com/gitblit/GitFilter.java
@@ -105,12 +105,20 @@
    * Determine if the repository requires authentication.
    * 
    * @param repository
    * @param action
    * @return true if authentication required
    */
   @Override
   protected boolean requiresAuthentication(RepositoryModel repository) {
   protected boolean requiresAuthentication(RepositoryModel repository, String action) {
      if (gitUploadPack.equals(action)) {
         // send to client
         return repository.accessRestriction.atLeast(AccessRestrictionType.CLONE);
      } else if (gitReceivePack.equals(action)) {
         // receive from client
      return repository.accessRestriction.atLeast(AccessRestrictionType.PUSH);
   }
      return false;
   }
   /**
    * Determine if the user can access the repository and perform the specified