|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
$userProducerManager = $this->getUserProducerManager(); |
|
|
$userProducerManager = $this->getUserProducerManager(); |
|
|
$producerManager = $this->getProducerManager(); |
|
|
$producerManager = $this->getProducerManager(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$user = GlobalParam::getCurrentUser(); |
|
|
$user = GlobalParam::getCurrentUser(); |
|
|
|
|
|
|
|
|
if($user) { |
|
|
if($user) { |
|
|
$userProducer = $userProducerManager->findOneUserProducer($user, $producer); |
|
|
$userProducer = $userProducerManager->findOneUserProducer($user, $producer); |
|
|
if (!$userProducer) { |
|
|
if (!$userProducer) { |