summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-09-27 13:44:28 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-27 21:31:39 -0400
commit629806c4c04d3bfc058056069c3123fd91782639 (patch)
treec0c6eac8dcecb59d2bc23300986a09a8abbdc11b /src/main/java/com/gitblit/wicket
parent234933ef14ca0ff2175235bc42bf1aa40040aa5d (diff)
downloadgitblit-629806c4c04d3bfc058056069c3123fd91782639.tar.gz
gitblit-629806c4c04d3bfc058056069c3123fd91782639.zip
Added setting to globally disable anonymous pushes in the receive pack
Change-Id: I3460c9c0eeb32503d58325fd09793a0cd40aa2c4
Diffstat (limited to 'src/main/java/com/gitblit/wicket')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
index a25797ff..568c3123 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -417,8 +417,8 @@ public class EditRepositoryPage extends RootSubPage {
form.add(new TextField<String>("description"));
form.add(ownersPalette);
form.add(new CheckBox("allowForks").setEnabled(GitBlit.getBoolean(Keys.web.allowForking, true)));
- DropDownChoice<AccessRestrictionType> accessRestriction = new DropDownChoice<AccessRestrictionType>("accessRestriction", Arrays
- .asList(AccessRestrictionType.values()), new AccessRestrictionRenderer());
+ DropDownChoice<AccessRestrictionType> accessRestriction = new DropDownChoice<AccessRestrictionType>("accessRestriction",
+ AccessRestrictionType.choices(GitBlit.getBoolean(Keys.git.allowAnonymousPushes, true)), new AccessRestrictionRenderer());
form.add(accessRestriction);
form.add(new CheckBox("isFrozen"));
// TODO enable origin definition