Skip to content

Commit

Permalink
[EZP-31457] Fix supportsClass in user provider (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizhippo authored Mar 23, 2020
1 parent 69acbe0 commit aa9e128
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eZ/Publish/Core/MVC/Symfony/Security/User/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ public function refreshUser(CoreUserInterface $user)
*/
public function supportsClass($class)
{
$supportedClass = 'eZ\\Publish\\Core\\MVC\\Symfony\\Security\\User';

return $class === $supportedClass || is_subclass_of($class, $supportedClass);
return $class === UserInterface::class || is_subclass_of($class, UserInterface::class);
}

/**
Expand Down

0 comments on commit aa9e128

Please sign in to comment.