shish 3 лет назад
Родитель
Сommit
cb6d896333
1 измененных файлов с 2 добавлено и 2 удалено
  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('没有权限');
                 }
             }