@@ -406,7 +406,7 @@ class SiteController extends FrontendController | |||
if ($signupForm->load($this->getRequest()->post()) | |||
&& ($user = $signupForm->signup()) | |||
&& $this->getUserCurrent()->login($user)) { | |||
&& Yii::$app->user->login($user)) { | |||
$this->redirect($returnUrl); | |||
} |
@@ -744,8 +744,9 @@ class OrderController extends ProducerBaseController | |||
{ | |||
$userProducerManager = $this->getUserProducerManager(); | |||
$producerManager = $this->getProducerManager(); | |||
$user = GlobalParam::getCurrentUser(); | |||
if($user) { | |||
$userProducer = $userProducerManager->findOneUserProducer($user, $producer); | |||
if (!$userProducer) { |