瀏覽代碼

[Espace producteur] Newsletter : erreur 404 lors de la désinscription #1351

feature/souke
Guillaume Bourgeois 1 年之前
父節點
當前提交
d9baeaf68d
共有 1 個文件被更改,包括 5 次插入11 次删除
  1. +5
    -11
      producer/controllers/NewsletterController.php

+ 5
- 11
producer/controllers/NewsletterController.php 查看文件

@@ -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()

Loading…
取消
儲存