Sfoglia il codice sorgente

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

feature/souke
Guillaume Bourgeois 1 anno fa
parent
commit
d9baeaf68d
1 ha cambiato i file con 5 aggiunte e 11 eliminazioni
  1. +5
    -11
      producer/controllers/NewsletterController.php

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

@@ -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…
Annulla
Salva