| | |
| | | import java.util.TreeSet;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.Constants.AccessRestrictionType;
|
| | | import com.gitblit.GitBlitException.ForbiddenException;
|
| | | import com.gitblit.GitBlitException.NotAllowedException;
|
| | | import com.gitblit.GitBlitException.UnauthorizedException;
|
| | |
| | | return sb.toString();
|
| | | }
|
| | | }
|
| | | |
| | | public AccessRestrictionType getDefaultAccessRestriction() {
|
| | | String restriction = null;
|
| | | if (settings.hasKey(Keys.git.defaultAccessRestriction)) {
|
| | | restriction = settings.get(Keys.git.defaultAccessRestriction).currentValue;
|
| | | }
|
| | | return AccessRestrictionType.fromName(restriction);
|
| | | }
|
| | |
|
| | | /**
|
| | | * Returns the list of pre-receive scripts the repository inherited from the
|