shish před 3 roky
rodič
revize
6d346e924b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 ($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 ($staff->founder != 2 && in_array($staff->id, [126647]) == false) {
                     util::fail('没有权限');
                 }
             }