]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp
Fix stglibs compilation errors
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / users_methods.cpp
index d16d883f480d4be0ead41f829cec7bb15e393621..0c28c60bfa2aaba30836e3165663bb5b397ea39f 100644 (file)
@@ -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);