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", [
|
||||
'requiredRoles' => 'admin',
|
||||
'hasRequiredRole' => $user->hasRole('admin'),
|
||||
'targetUser' => $user->username,
|
||||
'targetUser' => $targetUser->username,
|
||||
'isCurrentUser' => Auth::user()->is($user)
|
||||
]);
|
||||
return $user->hasRole('admin') && $user->isNot($targetUser);
|
||||
|
|
Loading…
Reference in New Issue