@@ -44,21 +44,15 @@ class NewsletterController extends ProducerBaseController | |||
{ | |||
public function behaviors() | |||
{ | |||
return [ | |||
'access' => [ | |||
'class' => AccessControl::class, | |||
'rules' => [ | |||
[ | |||
'allow' => true, | |||
'roles' => ['@'] | |||
] | |||
], | |||
], | |||
]; | |||
return []; | |||
} | |||
public function actionIndex() | |||
{ | |||
if(!$this->getUserCurrent()) { | |||
return $this->redirectProducerLoginFrontend('index'); | |||
} | |||
return $this->render('index', [ | |||
'user' => $this->getUserCurrent(), | |||
'producer' => $this->getProducerCurrent() |