James Moger
2012-10-13 c658df9e87d65b08d5482cf04489cb0532ff83dd
src/com/gitblit/wicket/pages/EditUserPage.java
@@ -209,6 +209,12 @@
      
      // not all user services support manipulating username and password
      boolean editCredentials = GitBlit.self().supportsCredentialChanges();
      // not all user services support manipulating display name
      boolean editDisplayName = GitBlit.self().supportsDisplayNameChanges();
      // not all user services support manipulating email address
      boolean editEmailAddress = GitBlit.self().supportsEmailAddressChanges();
      // not all user services support manipulating team memberships
      boolean editTeams = GitBlit.self().supportsTeamMembershipChanges();
@@ -222,9 +228,11 @@
            confirmPassword);
      confirmPasswordField.setResetPassword(false);
      form.add(confirmPasswordField.setEnabled(editCredentials));
      form.add(new TextField<String>("displayName").setEnabled(editCredentials));
      form.add(new TextField<String>("emailAddress").setEnabled(editCredentials));
      form.add(new TextField<String>("displayName").setEnabled(editDisplayName));
      form.add(new TextField<String>("emailAddress").setEnabled(editEmailAddress));
      form.add(new CheckBox("canAdmin"));
      form.add(new CheckBox("canFork"));
      form.add(new CheckBox("canCreate"));
      form.add(new CheckBox("excludeFromFederation"));
      form.add(repositories);
      form.add(teams.setEnabled(editTeams));