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
75949aca
authored
Jul 23, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
df803605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
app/Http/Controllers/Filter/LogFilter.php
app/Http/Controllers/Filter/LogFilter.php
View file @
75949aca
...
...
@@ -27,8 +27,8 @@ class LogFilter
$canViewAllPeopleLog
=
checkPerm
(
'ViewAllPeopleLog'
);
//可以查看所有人的日志
$canViewSubordinateLog
=
checkPerm
(
'ViewSubordinateLog'
);
$adminId
=
request
()
->
user
->
userId
;
if
(
$canViewAllPeopleLog
)
{
$adminId
=
!
empty
(
request
()
->
user
->
userId
)
?
request
()
->
user
->
userId
:
0
;
if
(
$canViewAllPeopleLog
||
$adminId
==
0
)
{
//可以查看所有的话,默认不做任何限制
}
else
{
//如果能看部下的,那需要判断的地方就多了不少
...
...
@@ -44,4 +44,4 @@ class LogFilter
}
return
$query
;
}
}
\ No newline at end of file
}
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