This commit is contained in:
Yuri Kuznetsov
2023-06-04 14:29:02 +03:00
parent 8485e7b436
commit d202d53ce2
@@ -87,7 +87,7 @@ class Service
/** @var ?User $user */
$user = $userId === $this->user->getId() ?
$this->user->getId() :
$this->user :
$this->entityManager->getEntityById(User::ENTITY_TYPE, $userId);
if (!$user) {