Commit e38ef8e0 by 杨树贤

去掉之前的性质放开查询

parent 3d6de6a7
......@@ -331,13 +331,13 @@ class SupplierFilter
$mainQuery->orWhere('status', SupplierChannelModel::STATUS_DISABLE);
}
//只有原厂、代理商需要走权限,其他性质的随便看
if (!checkPerm('ViewAllSupplier')) {
$mainQuery->orWhereNotIn('supplier_group', [
SupplierChannelModel::SUPPLIER_GROUP_ORIGINAL,
SupplierChannelModel::SUPPLIER_GROUP_PROXY
]);
}
// //只有原厂、代理商需要走权限,其他性质的随便看
// if (!checkPerm('ViewAllSupplier')) {
// $mainQuery->orWhereNotIn('supplier_group', [
// SupplierChannelModel::SUPPLIER_GROUP_ORIGINAL,
// SupplierChannelModel::SUPPLIER_GROUP_PROXY
// ]);
// }
});
$query->with(['contact', 'attachment', 'yunxin_account']);
......
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