X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/489de0deb4c1182cfbce41809b17892fcf9430fd..0f4172ffbddd7b51c80f388adc69c4601d230bf6:/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index ef3a470e..3a02fa18 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -16,7 +16,7 @@ /* * Author : Boris Mikhailenko - * Author : Maxim Mamontov + * Author : Maksym Mamontov */ #include "parser_users.h" @@ -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;