]> git.stg.codes - stg.git/commitdiff
Ticket. The stgTime argument added in TariffChangeIsAllowed() function
authorElena Mamontova <helenh463@gmail.com>
Mon, 28 Nov 2016 13:38:35 +0000 (15:38 +0200)
committerElena Mamontova <helenh463@gmail.com>
Mon, 28 Nov 2016 13:38:35 +0000 (15:38 +0200)
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,