From 256d2f54581170c65c56826b30682d82c2f25da6 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Thu, 11 Sep 2025 14:52:10 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D1=81=D1=82=D1=83=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../MatrixBouquetActualityController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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']); -- 2.39.5