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