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
+2 -2
View File
@@ -26,7 +26,7 @@ class Faq implements BlameableEntityInterface, TimestampableEntityInterface
private ?string $answer = null;
#[ORM\Column]
private ?int $sorting = null;
private int $sorting = 0;
public function getId(): ?int
{
@@ -57,7 +57,7 @@ class Faq implements BlameableEntityInterface, TimestampableEntityInterface
return $this;
}
public function getSorting(): ?int
public function getSorting(): int
{
return $this->sorting;
}
+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);
}