]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp
Replace change_tariff link to chg_tariff
[stg.git] / 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;
 
-if (users->FindByName(login, &u))
+if (!users->FindByName(login, &u))
     {
     users->Del(login, admin);
     *retvalPtr = xmlrpc_c::value_boolean(true);