From: Maxim Mamontov Date: Wed, 6 Apr 2011 12:51:43 +0000 (+0300) Subject: Fix user deletion in XML-RPC API X-Git-Tag: 2.407-rc3~72 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/fa277e91e547868196f37e982d0fe496ad1f10ee Fix user deletion in XML-RPC API --- 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);