Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
39b20a28
authored
Aug 06, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
74cc83b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Http/Controllers/Filter/SupplierFilter.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
39b20a28
...
...
@@ -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"
:
//待复审供应商
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment