]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Доступ feature_fomichev_erp-463_bouquet_actuality_interface
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 11 Sep 2025 11:52:10 +0000 (14:52 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 11 Sep 2025 11:52:10 +0000 (14:52 +0300)
erp24/controllers/MatrixBouquetActualityController.php

index 827360c8a622a3462cb724607b437f7eea5b07b6..605e0f7a4aa64cf42819c3f41642c03d03e38ab8 100644 (file)
@@ -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']);