Pārlūkot izejas kodu

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

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
d9baeaf68d
1 mainītis faili ar 5 papildinājumiem un 11 dzēšanām
  1. +5
    -11
      producer/controllers/NewsletterController.php

+ 5
- 11
producer/controllers/NewsletterController.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt