From: Vladimir Fomichev Date: Thu, 11 Sep 2025 11:52:10 +0000 (+0300) Subject: Доступ X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=256d2f54581170c65c56826b30682d82c2f25da6;p=erp24_rep%2Fyii-erp24%2F.git Доступ --- diff --git a/erp24/controllers/MatrixBouquetActualityController.php b/erp24/controllers/MatrixBouquetActualityController.php index 827360c8..605e0f7a 100644 --- a/erp24/controllers/MatrixBouquetActualityController.php +++ b/erp24/controllers/MatrixBouquetActualityController.php @@ -48,6 +48,9 @@ class MatrixBouquetActualityController extends Controller */ public function actionIndex() { + if (($resp = $this->checkAccess()) !== null) { + return $resp; + } $filter = new \yii\base\DynamicModel([ 'group_id', 'subgroup_id', 'is_archive', 'date_from', 'date_to', @@ -505,6 +508,9 @@ class MatrixBouquetActualityController extends Controller */ public function actionView($id) { + if (($resp = $this->checkAccess()) !== null) { + return $resp; + } return $this->render('view', [ 'model' => $this->findModel($id), ]); @@ -517,6 +523,9 @@ class MatrixBouquetActualityController extends Controller */ public function actionCreate() { + if (($resp = $this->checkAccess()) !== null) { + return $resp; + } $model = new MatrixBouquetActuality(); if ($this->request->isPost) { @@ -541,6 +550,9 @@ class MatrixBouquetActualityController extends Controller */ public function actionUpdate($id) { + if (($resp = $this->checkAccess()) !== null) { + return $resp; + } $model = $this->findModel($id); if ($this->request->isPost && $model->load($this->request->post()) && $model->save()) { @@ -561,6 +573,9 @@ class MatrixBouquetActualityController extends Controller */ public function actionDelete($id) { + if (($resp = $this->checkAccess()) !== null) { + return $resp; + } $this->findModel($id)->delete(); return $this->redirect(['index']);