| | |
| | | */
|
| | | package com.gitblit.servlet;
|
| | |
|
| | | import javax.inject.Inject;
|
| | | import javax.inject.Singleton;
|
| | | import com.google.inject.Inject;
|
| | | import com.google.inject.Singleton;
|
| | |
|
| | | import org.eclipse.jgit.lib.Repository;
|
| | |
|
| | |
| | | * @return true if the filter allows repository creation
|
| | | */
|
| | | @Override
|
| | | protected boolean isCreationAllowed() {
|
| | | protected boolean isCreationAllowed(String action) {
|
| | | return false;
|
| | | }
|
| | |
|
| | |
| | | *
|
| | | * @param repository
|
| | | * @param action
|
| | | * @param method
|
| | | * @return true if the action may be performed
|
| | | */
|
| | | @Override
|
| | | protected boolean isActionAllowed(RepositoryModel repository, String action) {
|
| | | protected boolean isActionAllowed(RepositoryModel repository, String action, String method) {
|
| | | return true;
|
| | | }
|
| | |
|
| | |
| | | *
|
| | | * @param repository
|
| | | * @param action
|
| | | * @param method
|
| | | * @return true if authentication required
|
| | | */
|
| | | @Override
|
| | | protected boolean requiresAuthentication(RepositoryModel repository, String action) {
|
| | | protected boolean requiresAuthentication(RepositoryModel repository, String action, String method) {
|
| | | return repository.accessRestriction.atLeast(AccessRestrictionType.VIEW);
|
| | | }
|
| | |
|