]> git.stg.codes - stg.git/commitdiff
Ticket 37. The stgTime argument added in TariffChangeIsAllowed()
authorElena Mamontova <helenh463@gmail.com>
Mon, 28 Nov 2016 13:23:19 +0000 (15:23 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 22 Dec 2016 19:33:08 +0000 (21:33 +0200)
function call.

projects/stargazer/plugins/configuration/rpcconfig/users_methods.cpp

index 5a738d16d2b81220503c18177d63547b191a874e..56167bc2cdaee25e9ec7ee6dd489c43980f0b34c 100644 (file)
@@ -385,7 +385,7 @@ if (tariffs->FindByName(tariff))
         if (newTariff)
             {
             const TARIFF * currentTariff = u->GetTariff();
-            std::string message = currentTariff->TariffChangeIsAllowed(*newTariff);
+            std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime);
             if (message.empty())
                 {
                 if (u->GetProperty().tariffName.Set(tariff,