瀏覽代碼

Correctif accès exclusif points de vente

feature/rotating_product
Guillaume Bourgeois 4 月之前
父節點
當前提交
43e8c8630a
共有 1 個檔案被更改,包括 10 行新增5 行删除
  1. +10
    -5
      producer/controllers/OrderController.php

+ 10
- 5
producer/controllers/OrderController.php 查看文件

@@ -817,7 +817,10 @@ class OrderController extends ProducerBaseController
$orderModule = $this->getOrderModule();

$user = GlobalParam::getCurrentUser();
$userProducer = $this->getUserProducerModule()->getRepository()->findOneUserProducer($user);
$userProducer = null;
if($user) {
$userProducer = $this->getUserProducerModule()->getRepository()->findOneUserProducer($user);
}
$pointsSaleArray = PointSale::find();

if ($distribution) {
@@ -913,10 +916,12 @@ class OrderController extends ProducerBaseController
}

// Filtre par accès exclusif aux points de vente
$pointsSaleArray = $this->getUserProducerModule()->getSolver()->filterPointsSaleByExclusiveAccess(
$userProducer,
$pointsSaleArray
);
if($userProducer) {
$pointsSaleArray = $this->getUserProducerModule()->getSolver()->filterPointsSaleByExclusiveAccess(
$userProducer,
$pointsSaleArray
);
}

return $pointsSaleArray;
}

Loading…
取消
儲存