Quellcode durchsuchen

超管才能操作

shish vor 3 Jahren
Ursprung
Commit
32297cb752
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 5 0
      app-ghs/controllers/PurchaseOrderController.php

+ 5 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -142,6 +142,11 @@ class PurchaseOrderController extends BaseController
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
 
+        $shopAdmin = $this->shopAdmin;
+        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+            util::fail('超管才能修改');
+        }
+
         $connection = Yii::$app->db;
         $transaction = $connection->beginTransaction();
         try {