From: Maksym Mamontov Date: Sat, 23 Jan 2021 15:29:38 +0000 (+0200) Subject: Another `stgTime` case. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/8272f5d139d947fdbe469dfd7afc3ddd6ea7a603?hp=-c Another `stgTime` case. --- 8272f5d139d947fdbe469dfd7afc3ddd6ea7a603 diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index bd7dd4ef..e371e45a 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -603,7 +603,7 @@ int CHG_USER::ApplyChanges() if (newTariff) { const auto tariff = u->GetTariff(); - std::string message = tariff->TariffChangeIsAllowed(*newTariff, stgTime); + std::string message = tariff->TariffChangeIsAllowed(*newTariff, time(NULL)); if (message.empty()) { if (!u->GetProperties().tariffName.Set(m_ucr.tariffName.const_data(), m_currAdmin, m_login, m_store))