X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/0907aa4037b12b6b88ee24495d4577a064d4f8db..1cb912e4f90473f78d2f0f10ab5c9b2c5bd36440:/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp diff --git a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp index 650f7b37..71910620 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp @@ -384,7 +384,7 @@ if (tariffs->FindByName(tariff)) if (newTariff) { const auto currentTariff = u->GetTariff(); - std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime); + std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, time(NULL)); if (message.empty()) { if (u->GetProperties().tariffName.Set(tariff, *admin, login, *store, comment))