mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-16 11:44:59 +00:00
fix display of checkbox field in user form
This commit is contained in:
@@ -225,10 +225,7 @@ class User implements AdvancedUserInterface
|
||||
|
||||
public function getRoles(): array
|
||||
{
|
||||
$roles = $this->roles;
|
||||
$roles[] = 'ROLE_USER';
|
||||
|
||||
return $roles;
|
||||
return array_unique($this->roles);
|
||||
}
|
||||
|
||||
public function getSalt(): ?string
|
||||
|
Reference in New Issue
Block a user