Bläddra i källkod

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

feature/souke
Guillaume Bourgeois 1 år sedan
förälder
incheckning
d9baeaf68d
1 ändrade filer med 5 tillägg och 11 borttagningar
  1. +5
    -11
      producer/controllers/NewsletterController.php

+ 5
- 11
producer/controllers/NewsletterController.php Visa fil

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

Laddar…
Avbryt
Spara