Browse Source

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

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
d9baeaf68d
1 changed files with 5 additions and 11 deletions
  1. +5
    -11
      producer/controllers/NewsletterController.php

+ 5
- 11
producer/controllers/NewsletterController.php View File

{ {
public function behaviors() public function behaviors()
{ {
return [
'access' => [
'class' => AccessControl::class,
'rules' => [
[
'allow' => true,
'roles' => ['@']
]
],
],
];
return [];
} }


public function actionIndex() public function actionIndex()
{ {
if(!$this->getUserCurrent()) {
return $this->redirectProducerLoginFrontend('index');
}

return $this->render('index', [ return $this->render('index', [
'user' => $this->getUserCurrent(), 'user' => $this->getUserCurrent(),
'producer' => $this->getProducerCurrent() 'producer' => $this->getProducerCurrent()

Loading…
Cancel
Save