shish %!s(int64=3) %!d(string=hai) anos
pai
achega
1e25b402f1
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  1. 2 9
      app-ghs/controllers/PurchaseOrderController.php

+ 2 - 9
app-ghs/controllers/PurchaseOrderController.php

@@ -167,14 +167,7 @@ class PurchaseOrderController extends BaseController
             //阿东的创始人才能查看采购单
             if (in_array($this->mainId, [742])) {
                 $staff = $this->shopAdmin;
-                if (isset($staff->founder) == false || $staff->founder != 2) {
-                    util::fail('没有权限');
-                }
-            }
-        } else {
-            if (in_array($this->mainId, [644])) {
-                $staff = $this->shopAdmin;
-                if (isset($staff->founder) == false || $staff->founder != 2) {
+                if ((isset($staff->founder) == false || $staff->founder != 2) || in_array($staff->id, [126647]) == false) {
                     util::fail('没有权限');
                 }
             }
@@ -205,7 +198,7 @@ class PurchaseOrderController extends BaseController
             //阿东的创始人才能查看采购单
             if (in_array($this->mainId, [742])) {
                 $staff = $this->shopAdmin;
-                if (isset($staff->founder) == false || $staff->founder != 2) {
+                if ((isset($staff->founder) == false || $staff->founder != 2) || in_array($staff->id, [126647]) == false) {
                     util::fail('没有权限');
                 }
             }