Pārlūkot izejas kodu

[Producer] Correctif accès utilisateur connecté

refactoring
Guillaume pirms 1 gada
vecāks
revīzija
17ac62c5da
1 mainītis faili ar 17 papildinājumiem un 1 dzēšanām
  1. +17
    -1
      producer/controllers/OrderController.php

+ 17
- 1
producer/controllers/OrderController.php Parādīt failu

@@ -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 = '')

Notiek ielāde…
Atcelt
Saglabāt