Commit 5e0c701e by 杨树贤

更加细致的权限判断

parent 2f78da71
...@@ -262,10 +262,10 @@ class SupplierFilter ...@@ -262,10 +262,10 @@ class SupplierFilter
}); });
// 额外显示的特殊状态(如果有权限) // 额外显示的特殊状态(如果有权限)
if ($canViewBlockSupplier) { if ($canViewBlockSupplier && checkPerm('ViewAllSupplier')) {
$mainQuery->orWhere('status', SupplierChannelModel::STATUS_BLOCK); $mainQuery->orWhere('status', SupplierChannelModel::STATUS_BLOCK);
} }
if ($canViewDisableSupplier) { if ($canViewDisableSupplier && checkPerm('ViewAllSupplier')) {
$mainQuery->orWhere('status', SupplierChannelModel::STATUS_DISABLE); $mainQuery->orWhere('status', SupplierChannelModel::STATUS_DISABLE);
} }
}); });
......
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