]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / user_helper.cpp
index 0e7ac9d66e13091d8ecf2091a2392400e6f317a0..ac6e72615a95e43ec6da8feacc7fe796be59f042 100644 (file)
@@ -437,7 +437,7 @@ if ((it = structVal.find("tariff")) != structVal.end())
     if (newTariff)
         {
         const TARIFF * currentTariff = ptr->GetTariff();
-        std::string message = currentTariff->TariffChangeIsAllowed(*newTariff);
+        std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime);
         if (message.empty())
             {
             if (ptr->GetProperty().tariffName.Get() != tariff)