allowAuthenticated.addItemListener(new ItemListener() {\r
@Override\r
public void itemStateChanged(ItemEvent e) {\r
- if (e.getStateChange() == ItemEvent.SELECTED) {\r
+ if (e.getStateChange() == ItemEvent.SELECTED) { \r
usersPalette.setEnabled(false);\r
teamsPalette.setEnabled(false);\r
}\r
\r
allowAuthenticated.setEnabled(false);\r
allowNamed.setEnabled(false);\r
+ verifyCommitter.setEnabled(false);\r
} else {\r
allowAuthenticated.setEnabled(true);\r
allowNamed.setEnabled(true);\r
+ verifyCommitter.setEnabled(true);\r
\r
if (allowNamed.isSelected()) {\r
usersPalette.setEnabled(true);\r
}\r
} else {\r
super.setupPage(getString("gb.edit"), repositoryModel.name);\r
- if (repositoryModel.accessRestriction.exceeds(AccessRestrictionType.NONE)) {\r
- repositoryUsers.addAll(GitBlit.self().getUserAccessPermissions(repositoryModel));\r
- repositoryTeams.addAll(GitBlit.self().getTeamAccessPermissions(repositoryModel));\r
- Collections.sort(repositoryUsers);\r
- }\r
+ repositoryUsers.addAll(GitBlit.self().getUserAccessPermissions(repositoryModel));\r
+ repositoryTeams.addAll(GitBlit.self().getTeamAccessPermissions(repositoryModel));\r
+ Collections.sort(repositoryUsers);\r
+ \r
federationSets.addAll(repositoryModel.federationSets);\r
if (!ArrayUtils.isEmpty(repositoryModel.indexedBranches)) {\r
indexedBranches.addAll(repositoryModel.indexedBranches);\r
final RadioChoice<AuthorizationControl> authorizationControl = new RadioChoice<Constants.AuthorizationControl>(\r
"authorizationControl", acList, new AuthorizationControlRenderer());\r
form.add(authorizationControl);\r
- \r
- form.add(new CheckBox("verifyCommitter"));\r
+ \r
+ final CheckBox verifyCommitter = new CheckBox("verifyCommitter");\r
+ verifyCommitter.setOutputMarkupId(true);\r
+ form.add(verifyCommitter);\r
\r
form.add(usersPalette);\r
form.add(teamsPalette);\r
usersPalette.setEnabled(false);\r
teamsPalette.setEnabled(false);\r
authorizationControl.setEnabled(false);\r
+ verifyCommitter.setEnabled(false);\r
} else {\r
// authenticated something\r
// enable authorization controls\r
authorizationControl.setEnabled(true);\r
+ verifyCommitter.setEnabled(true);\r
\r
boolean allowFineGrainedControls = repositoryModel.authorizationControl.equals(AuthorizationControl.NAMED);\r
usersPalette.setEnabled(allowFineGrainedControls);\r
- teamsPalette.setEnabled(allowFineGrainedControls); \r
+ teamsPalette.setEnabled(allowFineGrainedControls);\r
}\r
\r
accessRestriction.add(new AjaxFormComponentUpdatingBehavior("onchange") {\r
// enable/disable permissions panel based on access restriction\r
boolean allowAuthorizationControl = repositoryModel.accessRestriction.exceeds(AccessRestrictionType.NONE);\r
authorizationControl.setEnabled(allowAuthorizationControl);\r
+ verifyCommitter.setEnabled(allowAuthorizationControl);\r
\r
boolean allowFineGrainedControls = allowAuthorizationControl && repositoryModel.authorizationControl.equals(AuthorizationControl.NAMED);\r
usersPalette.setEnabled(allowFineGrainedControls);\r
}\r
\r
target.addComponent(authorizationControl);\r
+ target.addComponent(verifyCommitter);\r
target.addComponent(usersPalette);\r
target.addComponent(teamsPalette);\r
}\r