forked from miguel456/rbrecruiter
Update target user in logs
This commit is contained in:
parent
b0a935b8b3
commit
e566e40404
|
@ -47,7 +47,7 @@ class BanPolicy
|
||||||
Log::debug("Authorization check started", [
|
Log::debug("Authorization check started", [
|
||||||
'requiredRoles' => 'admin',
|
'requiredRoles' => 'admin',
|
||||||
'hasRequiredRole' => $user->hasRole('admin'),
|
'hasRequiredRole' => $user->hasRole('admin'),
|
||||||
'targetUser' => $user->username,
|
'targetUser' => $targetUser->username,
|
||||||
'isCurrentUser' => Auth::user()->is($user)
|
'isCurrentUser' => Auth::user()->is($user)
|
||||||
]);
|
]);
|
||||||
return $user->hasRole('admin') && $user->isNot($targetUser);
|
return $user->hasRole('admin') && $user->isNot($targetUser);
|
||||||
|
|
Loading…
Reference in New Issue