X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/91b5ae18ae465d0887785aab6dc0eb7abc0d5488..04c52c861598a001bfe217ef6ebe5c4c0d4c6354:/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp index d16d883f..0c28c60b 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp @@ -5,13 +5,13 @@ #include "users.h" #include "admins.h" #include "tariffs.h" -#include "../../../user_property.h" #include "rpcconfig.h" #include "user_helper.h" #include "user_ips.h" #include "utils.h" #include "common.h" +#include "user_property.h" //------------------------------------------------------------------------------ @@ -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);