James Moger
2014-03-22 bcc8a015ae552726742b4f437b2cb9e809270f96
src/main/java/com/gitblit/transport/ssh/gitblit/SetAccountCommand.java
@@ -22,6 +22,7 @@
import org.kohsuke.args4j.Argument;
import org.kohsuke.args4j.Option;
import com.gitblit.transport.ssh.SshKey;
import com.gitblit.transport.ssh.commands.CommandMetaData;
/** Set a user's account settings. **/
@@ -66,18 +67,20 @@
      }
   }
   private void addSshKeys(List<String> sshKeys) throws UnloggedFailure,
   private void addSshKeys(List<String> keys) throws UnloggedFailure,
         IOException {
      for (String sshKey : sshKeys) {
      for (String key : keys) {
         SshKey sshKey = new SshKey(key);
         getKeyManager().addKey(user, sshKey);
      }
   }
   private void deleteSshKeys(List<String> sshKeys) {
      if (sshKeys.contains(ALL)) {
   private void deleteSshKeys(List<String> keys) {
      if (keys.contains(ALL)) {
         getKeyManager().removeAllKeys(user);
      } else {
         for (String sshKey : sshKeys) {
         for (String key : keys) {
            SshKey sshKey = new SshKey(key);
            getKeyManager().removeKey(user, sshKey);
         }
      }