summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-27 09:55:54 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-10 18:58:10 -0400
commitda47118b4a96629887683ab8d65a1db6114d20c0 (patch)
treef0424bdfb63617213c4604a7eb52048d48da8d9b
parent8d96b960e472433d2b4a5b71df7000bf1fbde648 (diff)
downloadgitblit-da47118b4a96629887683ab8d65a1db6114d20c0.tar.gz
gitblit-da47118b4a96629887683ab8d65a1db6114d20c0.zip
Refine delete user method
-rw-r--r--src/main/java/com/gitblit/GitBlit.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java
index 0ffff310..430ae6d1 100644
--- a/src/main/java/com/gitblit/GitBlit.java
+++ b/src/main/java/com/gitblit/GitBlit.java
@@ -200,11 +200,8 @@ public class GitBlit extends GitblitManager {
*/
@Override
public boolean deleteUser(String username) {
- boolean success = userManager.deleteUser(username);
- if (success) {
- getPublicKeyManager().removeAllKeys(username);
- }
- return success;
+ UserModel user = userManager.getUserModel(username);
+ return deleteUserModel(user);
}
@Override