James Moger
2012-10-31 644bdd5a59a5ed5fbf93a0765f92608b0530c16a
src/com/gitblit/DownloadZipFilter.java
@@ -57,6 +57,16 @@
   }
   /**
    * Determine if a non-existing repository can be created using this filter.
    *
    * @return true if the filter allows repository creation
    */
   @Override
   protected boolean isCreationAllowed() {
      return false;
   }
   /**
    * Determine if the action may be executed on the repository.
    * 
    * @param repository
@@ -72,10 +82,11 @@
    * 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) {
      return repository.accessRestriction.atLeast(AccessRestrictionType.VIEW);
   }
@@ -90,7 +101,7 @@
    */
   @Override
   protected boolean canAccess(RepositoryModel repository, UserModel user, String action) {
      return user.canAccessRepository(repository);
      return user.canView(repository);
   }
}