summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
70778b6)
forward declaration.
Исправлена работа метода по изменению тарифа.
#include "users_methods.h"
#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 "rpcconfig.h"
#include "user_helper.h"
#include "user_ips.h"
#include "utils.h"
#include "common.h"
//------------------------------------------------------------------------------
#include "common.h"
//------------------------------------------------------------------------------
if (!adminInfo.priviledges.userConf || !adminInfo.priviledges.userPasswd)
{
if (!adminInfo.priviledges.userConf || !adminInfo.priviledges.userPasswd)
{
- uhelper.SetUserInfo(info, admin, login, *store);
+ uhelper.SetUserInfo(info, admin, login, *store, tariffs);
- uhelper.SetUserInfo(info, admin, login, *store);
+ uhelper.SetUserInfo(info, admin, login, *store, tariffs);
- if (u->property.tariffName.Set(tariff,
- admin,
- login,
- store))
- 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 <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
-#include "../../../users.h"
-#include "../../../user.h"
+class ADMINS;
+class TARIFFS;
+class USERS;
+class BASE_STORE;
+class IP_MASK;
class METHOD_USER_GET : public xmlrpc_c::method {
public:
class METHOD_USER_GET : public xmlrpc_c::method {
public:
public:
METHOD_USER_CHG(RPC_CONFIG * c,
ADMINS * a,
public:
METHOD_USER_CHG(RPC_CONFIG * c,
ADMINS * a,
BASE_STORE * s,
USERS * u)
: config(c),
admins(a),
BASE_STORE * s,
USERS * u)
: config(c),
admins(a),
private:
RPC_CONFIG * config;
ADMINS * admins;
private:
RPC_CONFIG * config;
ADMINS * admins;
BASE_STORE * store;
USERS * users;
};
BASE_STORE * store;
USERS * users;
};