feat: profile page for administrative users and muting of notifications

This commit is contained in:
Björn Fromme
2024-05-16 11:19:37 +02:00
parent b761480ffe
commit f43b47e987
9 changed files with 164 additions and 0 deletions
+15
View File
@@ -54,6 +54,9 @@ class User implements UserInterface, TimestampableEntityInterface
#[ORM\Column(length: 32, nullable: true)]
private ?string $hotelCode = null;
#[ORM\Column]
private bool $muteNotifications = false;
public function __construct()
{
$this->uuid = Uuid::v4();
@@ -264,4 +267,16 @@ class User implements UserInterface, TimestampableEntityInterface
return $this;
}
public function isMuteNotifications(): bool
{
return $this->muteNotifications;
}
public function setMuteNotifications(bool $muteNotifications): static
{
$this->muteNotifications = $muteNotifications;
return $this;
}
}