Quellcode durchsuchen

[Producer] Correctif accès utilisateur connecté

refactoring
Guillaume vor 1 Jahr
Ursprung
Commit
17ac62c5da
1 geänderte Dateien mit 17 neuen und 1 gelöschten Zeilen
  1. +17
    -1
      producer/controllers/OrderController.php

+ 17
- 1
producer/controllers/OrderController.php Datei anzeigen

@@ -53,6 +53,7 @@ use common\logic\User\User\Model\User;
use DateTime;
use yii\base\UserException;
use yii\data\ActiveDataProvider;
use yii\filters\AccessControl;
use yii\web\NotFoundHttpException;

class OrderController extends ProducerBaseController
@@ -61,7 +62,22 @@ class OrderController extends ProducerBaseController

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

public function actionOrder(int $id = 0, $date = '')

Laden…
Abbrechen
Speichern