]> source.dussan.org Git - gitblit.git/commitdiff
Refine delete user method
authorJames Moger <james.moger@gitblit.com>
Thu, 27 Mar 2014 13:55:54 +0000 (09:55 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 10 Apr 2014 22:58:10 +0000 (18:58 -0400)
src/main/java/com/gitblit/GitBlit.java

index 0ffff310022a63a0052971843612b120f34b024c..430ae6d1c4874f1923114af4476d25fd7317d613 100644 (file)
@@ -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