mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
Run symfonysetlist up to symfony_70
This commit is contained in:
@@ -24,7 +24,7 @@ class UserManager implements \ChampsLibres\WopiBundle\Contracts\UserManagerInter
|
||||
$user = $this->security->getUser();
|
||||
|
||||
if (!$user instanceof User && $this->security->isGranted('ROLE_ADMIN')) {
|
||||
return $user->getUsername();
|
||||
return $user->getUserIdentifier();
|
||||
}
|
||||
|
||||
if (!$user instanceof User) {
|
||||
@@ -39,7 +39,7 @@ class UserManager implements \ChampsLibres\WopiBundle\Contracts\UserManagerInter
|
||||
$user = $this->security->getUser();
|
||||
|
||||
if (!$user instanceof User && $this->security->isGranted('ROLE_ADMIN')) {
|
||||
return $user->getUsername();
|
||||
return $user->getUserIdentifier();
|
||||
}
|
||||
|
||||
if (!$user instanceof User) {
|
||||
|
Reference in New Issue
Block a user