Browse Source

查看采购

shish 3 years ago
parent
commit
cb6d896333
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app-ghs/controllers/PurchaseOrderController.php

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

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