Commit 75949aca by 杨树贤

fix

parent df803605
Showing with 2 additions and 2 deletions
...@@ -27,8 +27,8 @@ class LogFilter ...@@ -27,8 +27,8 @@ class LogFilter
$canViewAllPeopleLog = checkPerm('ViewAllPeopleLog'); $canViewAllPeopleLog = checkPerm('ViewAllPeopleLog');
//可以查看所有人的日志 //可以查看所有人的日志
$canViewSubordinateLog = checkPerm('ViewSubordinateLog'); $canViewSubordinateLog = checkPerm('ViewSubordinateLog');
$adminId = request()->user->userId; $adminId = !empty(request()->user->userId) ? request()->user->userId : 0;
if ($canViewAllPeopleLog) { if ($canViewAllPeopleLog || $adminId == 0) {
//可以查看所有的话,默认不做任何限制 //可以查看所有的话,默认不做任何限制
} else { } else {
//如果能看部下的,那需要判断的地方就多了不少 //如果能看部下的,那需要判断的地方就多了不少
......
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