WIP: Implement CRUD, improve menu configuration

This commit is contained in:
Björn Fromme committed 2023-09-27 17:50:42 +02:00
1 parent c55fd85314
commit c528156959
43 files changed
+2187 -3475

No files matched your search

+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);
}