#include "users_methods.h"
+#include "../../../users.h"
+#include "../../../admins.h"
+#include "../../../tariffs.h"
+
#include "rpcconfig.h"
#include "user_helper.h"
#include "user_ips.h"
#include "utils.h"
-
#include "common.h"
//------------------------------------------------------------------------------
if (!adminInfo.priviledges.userConf || !adminInfo.priviledges.userPasswd)
{
- uhelper.SetUserInfo(info, admin, login, *store);
+ uhelper.SetUserInfo(info, admin, login, *store, tariffs);
}
else
{
- uhelper.SetUserInfo(info, admin, login, *store);
+ uhelper.SetUserInfo(info, admin, login, *store, tariffs);
}
u->WriteConf();
return;
}
}
- if (u->property.tariffName.Set(tariff,
- admin,
- login,
- store))
+ else
{
- u->WriteConf();
- *retvalPtr = xmlrpc_c::value_boolean(true);
- return;
+ if (u->property.tariffName.Set(tariff,
+ admin,
+ login,
+ store))
+ {
+ u->WriteConf();
+ *retvalPtr = xmlrpc_c::value_boolean(true);
+ return;
+ }
}
}
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
-#include "../../../users.h"
-#include "../../../user.h"
class RPC_CONFIG;
+class ADMINS;
+class TARIFFS;
+class USERS;
+class BASE_STORE;
+class IP_MASK;
class METHOD_USER_GET : public xmlrpc_c::method {
public:
public:
METHOD_USER_CHG(RPC_CONFIG * c,
ADMINS * a,
+ TARIFFS * t,
BASE_STORE * s,
USERS * u)
: config(c),
admins(a),
+ tariffs(t),
store(s),
users(u)
{
private:
RPC_CONFIG * config;
ADMINS * admins;
+ TARIFFS * tariffs;
BASE_STORE * store;
USERS * users;
};