Commit 39b20a28 by mushishixian

fix

parent 74cc83b0
......@@ -116,7 +116,8 @@ class SupplierFilter
//默认展示的数据查询
//看全部的权限,优先级最高
if ($canViewAllSupplier || $sourceType == 'block') {
// if ($canViewAllSupplier || $sourceType == 'block') {
if ($canViewAllSupplier) {
//能查看所有的话,限制基本没有
} else {
//如果能看部下的,那需要判断的地方就多了不少
......@@ -165,7 +166,7 @@ class SupplierFilter
switch ($sourceType) {
case "all":
//还要看到所有黑名单
$query->orWhere('status', SupplierChannelModel::STATUS_BLOCK);
// $query->orWhere('status', SupplierChannelModel::STATUS_BLOCK);
break;
case "pending":
//待复审供应商
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment