Paul Martin
2016-04-30 a502d96a860456ec5e8c96761db70f7cabb74751
src/main/java/com/gitblit/wicket/panels/AccessPolicyPanel.java
@@ -25,7 +25,9 @@
import org.apache.wicket.markup.html.form.RadioGroup;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.wicket.markup.html.panel.Fragment;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
import com.gitblit.Constants.AccessRestrictionType;
import com.gitblit.Constants.AuthorizationControl;
@@ -142,6 +144,17 @@
      }
      add(policiesGroup);
      if (app().settings().getBoolean(Keys.web.allowForking, true)) {
         Fragment fragment = new Fragment("allowForks", "allowForksFragment", this);
         fragment.add(new BooleanOption("allowForks",
            getString("gb.allowForks"),
            getString("gb.allowForksDescription"),
            new PropertyModel<Boolean>(repository, "allowForks")));
         add(fragment);
      } else {
         add(new Label("allowForks").setVisible(false));
      }
      setOutputMarkupId(true);
   }