Kaynağa Gözat

Utilisateurs : accès exclusif à certains points de vente

feature/rotating_product
Guillaume Bourgeois 5 ay önce
ebeveyn
işleme
bd453d4547
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      domain/User/UserProducer/UserProducerSolver.php
  2. +1
    -1
      producer/controllers/OrderController.php

+ 1
- 1
domain/User/UserProducer/UserProducerSolver.php Dosyayı Görüntüle

@@ -11,7 +11,7 @@ class UserProducerSolver extends AbstractSolver
return $userProducer->credit < 0 || $userProducer->credit > 0;
}

public function filterUserPointsSaleByExclusiveAccess(UserProducer $userProducer, array $pointsSaleArray = []): array
public function filterPointsSaleByExclusiveAccess(UserProducer $userProducer, array $pointsSaleArray = []): array
{
if(!$userProducer->getExclusiveAccessSelectedPointsSale()) {
return $pointsSaleArray;

+ 1
- 1
producer/controllers/OrderController.php Dosyayı Görüntüle

@@ -917,7 +917,7 @@ class OrderController extends ProducerBaseController
}

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

Yükleniyor…
İptal
Kaydet