#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;
+ }
}
}