feat: profile page for administrative users and muting of notifications

This commit is contained in:
Björn Fromme committed 2024-05-16 11:19:37 +02:00
1 parent b761480ffe
commit f43b47e987
9 files changed
+164

No files matched your search

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