James Moger
2012-10-22 eba89539a29deba954035056437279088c3e047b
src/com/gitblit/PagesFilter.java
@@ -77,6 +77,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
@@ -92,10 +102,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);
   }
@@ -110,6 +121,6 @@
    */
   @Override
   protected boolean canAccess(RepositoryModel repository, UserModel user, String action) {      
      return user.canAccessRepository(repository);
      return user.canView(repository);
   }
}