mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 06:25:22 +01:00
Use imports instead of FQNs
This commit is contained in:
@@ -44,7 +44,7 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU
|
||||
*/
|
||||
public function getAnonymousUser(): ?User
|
||||
{
|
||||
if (!$this->anonymous_user instanceof \App\Entity\UserSystem\User) {
|
||||
if (!$this->anonymous_user instanceof User) {
|
||||
$this->anonymous_user = $this->findOneBy([
|
||||
'id' => User::ID_ANONYMOUS,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user