Skip to content

Commit 2f54910

Browse files
phpstan level 6
1 parent c339851 commit 2f54910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/AppUserModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function eraseCredentials(): void
174174

175175
public function currentUserAdmin(UserInterface $userConnected): bool
176176
{
177-
if ($this->getId() == $userConnected->getId() && true === in_array('ROLE_ADMIN', $this->roles)) {
177+
if ($this->getUserIdentifier() == $userConnected->getUserIdentifier() && true === in_array('ROLE_ADMIN', $this->roles)) {
178178
return true;
179179
}
180180

0 commit comments

Comments
 (0)