From 8272f5d139d947fdbe469dfd7afc3ddd6ea7a603 Mon Sep 17 00:00:00 2001 From: Maksym Mamontov Date: Sat, 23 Jan 2021 17:29:38 +0200 Subject: [PATCH] Another `stgTime` case. --- .../stargazer/plugins/configuration/sgconfig/parser_users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.44.2