X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e80cfd8ff6b861b428d318a899128cf971fe22c8..fb083109b84a9f198b4949892b0b816801e1d196:/projects/stargazer/user_impl.cpp 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());