Browse Source

Utilisateurs : accès exclusif à certains points de vente

feature/rotating_product
Guillaume Bourgeois 5 months ago
parent
commit
bd453d4547
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      domain/User/UserProducer/UserProducerSolver.php
  2. +1
    -1
      producer/controllers/OrderController.php

+ 1
- 1
domain/User/UserProducer/UserProducerSolver.php View File

return $userProducer->credit < 0 || $userProducer->credit > 0; 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()) { if(!$userProducer->getExclusiveAccessSelectedPointsSale()) {
return $pointsSaleArray; return $pointsSaleArray;

+ 1
- 1
producer/controllers/OrderController.php View File

} }


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

Loading…
Cancel
Save