Browse Source

[Producer] Correctif accès utilisateur connecté

refactoring
Guillaume 1 year ago
parent
commit
17ac62c5da
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      producer/controllers/OrderController.php

+ 17
- 1
producer/controllers/OrderController.php View File

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

Loading…
Cancel
Save