mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-2172_parade-saml-err500_MASTER (#2695)
fix : the user application was updated (=created) after the check add : "find()" on user repo (type hinted) to allow code sniff, completion etc.
This commit is contained in:
@@ -22,6 +22,18 @@ use Alchemy\Phrasea\Model\Entities\User;
|
||||
*/
|
||||
class UserRepository extends EntityRepository
|
||||
{
|
||||
/**
|
||||
* Finds an User by its primary key / identifier.
|
||||
*
|
||||
* @inheritdoc
|
||||
*
|
||||
* @return User|null
|
||||
*/
|
||||
public function find($id, $lockMode = null, $lockVersion = null)
|
||||
{
|
||||
return parent::find($id, $lockMode, $lockVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds admins.
|
||||
*
|
||||
|
Reference in New Issue
Block a user