@@ -38,11 +38,23 @@ | |||
namespace producer\controllers; | |||
use yii\filters\AccessControl; | |||
class NewsletterController extends ProducerBaseController | |||
{ | |||
public function behaviors() | |||
{ | |||
return []; | |||
return [ | |||
'access' => [ | |||
'class' => AccessControl::class, | |||
'rules' => [ | |||
[ | |||
'allow' => true, | |||
'roles' => ['@'] | |||
] | |||
], | |||
], | |||
]; | |||
} | |||
public function actionIndex() |