feat: inherit shared role

This commit is contained in:
Björn Fromme committed 2024-02-06 14:25:47 +01:00
1 parent acec8f2226
commit 91bcc0fd46
2 files changed
+4 -4

No files matched your search

-4
View File
@@ -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);
}