From 1daab343e00dffdcdbc3530440a10e020063860b Mon Sep 17 00:00:00 2001 From: gridnev Date: Thu, 9 Jul 2020 17:20:59 +0300 Subject: [PATCH 1/2] Remove account isActive and isFreeze checks from ClientIdSubscriber --- EventSubscriber/ClientIdSubscriber.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/EventSubscriber/ClientIdSubscriber.php b/EventSubscriber/ClientIdSubscriber.php index f6e6439..47193e7 100644 --- a/EventSubscriber/ClientIdSubscriber.php +++ b/EventSubscriber/ClientIdSubscriber.php @@ -66,12 +66,6 @@ class ClientIdSubscriber implements EventSubscriberInterface if (null === $account) { throw new AccessDeniedHttpException('ClientId not found'); } - if (!$account->isActive()) { - throw new AccessDeniedHttpException('Account is not active'); - } - if ($account->isFreeze()) { - throw new AccessDeniedHttpException('Account is freezed'); - } $this->moduleManager->setAccount($account); } From 8a49cdd1d3433b79eda08919d52161b1daa39982 Mon Sep 17 00:00:00 2001 From: gridnev Date: Thu, 9 Jul 2020 17:26:08 +0300 Subject: [PATCH 2/2] Add duplicateOrderProductSupported field in Configuration model --- Model/Configuration.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Model/Configuration.php b/Model/Configuration.php index 98ccaff..4cb6c6c 100644 --- a/Model/Configuration.php +++ b/Model/Configuration.php @@ -106,6 +106,17 @@ class Configuration */ public $selfShipmentAvailable = false; + /** + * Возможность работы с заказом, содержащим несколько позиций с одинаковым торговым предложением + * + * @var bool + * + * @Serializer\Groups({"set", "get"}) + * @Serializer\SerializedName("duplicateOrderProductSupported") + * @Serializer\Type("boolean") + */ + public $duplicateOrderProductSupported = true; + /** * Разрешить отдельно передавать трек номер *