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
+8
View File
@@ -21,6 +21,9 @@ class UserRepository extends ServiceEntityRepository
parent::__construct($registry, User::class);
}
/**
* @return User[]
*/
public function getAdministrativeUsers(): array
{
$qb = $this->createQueryBuilder('u');
@@ -42,6 +45,11 @@ class UserRepository extends ServiceEntityRepository
;
}
/**
* @param string $role
* @param string $hotelCode
* @return User[]
*/
public function getUsersByRoleAndHotelCode(string $role, string $hotelCode): array
{
$hotelCodeBase = substr($hotelCode, 0, 3);