git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checkout submodules in GitHub Actions.
[stg.git]
/
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 650f7b37d3a88274ae290a78727bf968f3a4e46c..71910620470f77cc32505ba690b804c4f1035900 100644
(file)
--- 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();
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))
if (message.empty())
{
if (u->GetProperties().tariffName.Set(tariff, *admin, login, *store, comment))