- answer = "<" + tag + " result=\"error\" reason=\"Access denied\"/>";
-}
-
-int ADD_USER::CheckUserData()
-{
- USER_PTR u;
- if (m_users.FindByName(login, &u))
- return m_users.Add(login, &currAdmin);
-
- return -1;
-}
-
-CHG_USER::CHG_USER(const ADMIN & admin, USERS & users, const TARIFFS & tariffs)
- : BASE_PARSER(admin, "SetUser"),
- m_users(users),
- m_tariffs(tariffs),
- usr(new USER_STAT_RES),
- ucr(new USER_CONF_RES),
- upr(new RESETABLE<uint64_t>[DIR_NUM]),
- downr(new RESETABLE<uint64_t>[DIR_NUM]),
- cashMustBeAdded(false),
- res(0)
-{
-}
-
-CHG_USER::~CHG_USER()
-{
- delete usr;
- delete ucr;
- delete[] upr;
- delete[] downr;