]> git.stg.codes - stg.git/commitdiff
Fix user deletion in XML-RPC API
authorMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 12:51:43 +0000 (15:51 +0300)
committerMaxim Mamontov <faust@gts.dp.ua>
Wed, 6 Apr 2011 12:51:43 +0000 (15:51 +0300)
projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp

index 296a7c7bb9ebd5d3809213537582403d60a47b0b..0c28c60bfa2aaba30836e3165663bb5b397ea39f 100644 (file)
@@ -125,7 +125,7 @@ if (admins->FindAdmin(adminInfo.admin, &admin))
 
 USER_PTR u;
 
 
 USER_PTR u;
 
-if (users->FindByName(login, &u))
+if (!users->FindByName(login, &u))
     {
     users->Del(login, admin);
     *retvalPtr = xmlrpc_c::value_boolean(true);
     {
     users->Del(login, admin);
     *retvalPtr = xmlrpc_c::value_boolean(true);