diff --git a/src/Actions/Impersonate.php b/src/Actions/Impersonate.php index c27d11c127..8286f29f4a 100644 --- a/src/Actions/Impersonate.php +++ b/src/Actions/Impersonate.php @@ -23,7 +23,7 @@ public function visibleTo($item) return false; } - return $item instanceof UserContract && $item != User::current(); + return $item instanceof UserContract && $item->id() != User::current()->id(); } public function visibleToBulk($items)