X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/489de0deb4c1182cfbce41809b17892fcf9430fd..37a3d7cb20e73c30a743de64b6e85d718177d5a1:/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index ef3a470e..5707b726 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -598,8 +598,8 @@ int CHG_USER::ApplyChanges() if (newTariff) { const TARIFF * tariff = u->GetTariff(); - std::string message = tariff->TariffChangeIsAllowed(*newTariff); - if (message == "") + std::string message = tariff->TariffChangeIsAllowed(*newTariff, stgTime); + if (message.empty()) { if (!u->GetProperty().tariffName.Set(m_ucr.tariffName.const_data(), &m_currAdmin, m_login, &m_store)) return -1;