]> git.stg.codes - stg.git/commitdiff
Another `stgTime` case.
authorMaksym Mamontov <madf@madf.info>
Sat, 23 Jan 2021 15:29:38 +0000 (17:29 +0200)
committerMaksym Mamontov <madf@madf.info>
Sat, 23 Jan 2021 15:29:38 +0000 (17:29 +0200)
projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp

index bd7dd4ef6b0c7d4f351fa9ff441269f92da060f0..e371e45a61964d198d55d75d73a38172cd6a3b03 100644 (file)
@@ -603,7 +603,7 @@ int CHG_USER::ApplyChanges()
         if (newTariff)
         {
             const auto tariff = u->GetTariff();
-            std::string message = tariff->TariffChangeIsAllowed(*newTariff, stgTime);
+            std::string message = tariff->TariffChangeIsAllowed(*newTariff, time(NULL));
             if (message.empty())
             {
                 if (!u->GetProperties().tariffName.Set(m_ucr.tariffName.const_data(), m_currAdmin, m_login, m_store))