|
|
@@ -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('没有权限');
|
|
|
}
|
|
|
}
|