From da47118b4a96629887683ab8d65a1db6114d20c0 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 27 Mar 2014 09:55:54 -0400 Subject: [PATCH] Refine delete user method --- src/main/java/com/gitblit/GitBlit.java | 7 ++----- 1 file 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 -- 2.39.5