From fa277e91e547868196f37e982d0fe496ad1f10ee Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 6 Apr 2011 15:51:43 +0300 Subject: [PATCH 1/1] Fix user deletion in XML-RPC API --- .../stargazer/plugins/configuration/rpcconfig/users_methods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp index 296a7c7b..0c28c60b 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp @@ -125,7 +125,7 @@ if (admins->FindAdmin(adminInfo.admin, &admin)) USER_PTR u; -if (users->FindByName(login, &u)) +if (!users->FindByName(login, &u)) { users->Del(login, admin); *retvalPtr = xmlrpc_c::value_boolean(true); -- 2.44.2