X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e3c5fe3cce7be5d2b48bfcf11a1de20ca12fc7e0..fb083109b84a9f198b4949892b0b816801e1d196:/projects/stargazer/user_impl.cpp diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 72a3378f..f8335525 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1184,13 +1184,13 @@ if (nextTariff.ConstData() != "") } else { - if (tariff->TariffChangelsAllowed(*nt) == "") + std::string message = tariff->TariffChangeIsAllowed(*nt); + if (message.empty()) { property.tariffName.Set(nextTariff, sysAdmin, login, store); } else { - std::string message = tariff->TariffChangelsAllowed(*nt); WriteServLog("Tariff change is prohibited for user %s. %s", login.c_str(), message.c_str());