Bladeren bron

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

feature/souke
Guillaume Bourgeois 1 jaar geleden
bovenliggende
commit
d9baeaf68d
1 gewijzigde bestanden met toevoegingen van 5 en 11 verwijderingen
  1. +5
    -11
      producer/controllers/NewsletterController.php

+ 5
- 11
producer/controllers/NewsletterController.php Bestand weergeven

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

Laden…
Annuleren
Opslaan