Commit 75949aca by 杨树贤

fix

parent df803605
Showing with 3 additions and 4 deletions
......@@ -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
}
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