WIP: Implement CRUD, improve menu configuration

This commit is contained in:
Björn Fromme
2023-09-27 17:50:42 +02:00
parent c55fd85314
commit c528156959
43 changed files with 2187 additions and 3475 deletions
+4
View File
@@ -94,6 +94,10 @@ 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);
}