@@ -92,10 +92,6 @@ class ProducerBaseController extends CommonController | |||
$this->redirect(Yii::$app->urlManagerFrontend->createAbsoluteUrl(['site/producer-offline','id' => $producer->id])) ; | |||
} | |||
if(!$userProducer) { | |||
Producer::addUser(User::getCurrentId(), $producer->id, 0) ; | |||
} | |||
return parent::beforeAction($event); | |||
} | |||