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