shish пре 3 година
родитељ
комит
68bd29b433
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      app-ghs/controllers/ShopController.php
  2. 1 1
      app-ghs/controllers/StatController.php

+ 2 - 2
app-ghs/controllers/ShopController.php

@@ -255,10 +255,10 @@ class ShopController extends BaseController
     public function actionToggleShop()
     {
 
-        //惠雅鲜花莞城员工不能切换门店,但又有报损权限
+        //惠雅鲜花员工不能切换门店,但又有报损权限
         $shopAdmin = $this->shopAdmin;
         $adminId = $shopAdmin->adminId ?? 0;
-        if (in_array($adminId, [2812])) {
+        if (in_array($adminId, [2812, 4004])) {
             util::fail('暂无权限');
         }
 

+ 1 - 1
app-ghs/controllers/StatController.php

@@ -27,7 +27,7 @@ class StatController extends BaseController
         //惠雅鲜花南城和莞城员工不能看利润表
         $shopAdmin = $this->shopAdmin;
         $adminId = $shopAdmin->adminId ?? 0;
-        if (in_array($adminId, [2366, 3405, 3407, 2812])) {
+        if (in_array($adminId, [2366, 3405, 3407, 2812, 4004])) {
             util::fail('暂无权限');
         }