Browse Source

超管才能修改

shish 4 years ago
parent
commit
2112557a24
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app-ghs/controllers/CustomController.php

+ 6 - 0
app-ghs/controllers/CustomController.php

@@ -260,6 +260,12 @@ class CustomController extends BaseController
     //修改客户等级 shish 20211007
     public function actionChangeLevel()
     {
+
+        $shopAdmin = $this->shopAdmin;
+        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+            util::fail('超管才能修改');
+        }
+
         $get = Yii::$app->request->get();
         $customId = $get['customId'] ?? 0;
         $level = $get['level'] ?? 0;