feat: inherit shared role
This commit is contained in:
@@ -144,10 +144,6 @@ class User implements UserInterface, TimestampableEntityInterface
|
||||
{
|
||||
$roles = ['ROLE_USER', ...$this->roles];
|
||||
|
||||
if (in_array('ROLE_ADMIN', $this->roles) || in_array('ROLE_MANAGER', $this->roles)) {
|
||||
$roles[] = 'ROLE_ADMINISTRATIVE';
|
||||
}
|
||||
|
||||
return array_unique($roles);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user