This commit is contained in:
Adrian Hopek
2022-03-18 11:00:08 +01:00
parent 140be26159
commit 84fc405314
5 changed files with 3 additions and 47 deletions

View File

@@ -29,6 +29,7 @@ class ApproveAction
protected function notify(VacationRequest $vacationRequest): void
{
$users = User::query()
->where("id", "!=", $vacationRequest->user->id)
->whereIn("role", [Role::TechnicalApprover, Role::AdministrativeApprover, Role::Administrator])
->get();

View File

@@ -29,6 +29,7 @@ class CancelAction
protected function notify(VacationRequest $vacationRequest): void
{
$users = User::query()
->where("id", "!=", $vacationRequest->user->id)
->whereIn("role", [Role::TechnicalApprover, Role::AdministrativeApprover, Role::Administrator])
->get();

View File

@@ -26,6 +26,7 @@ class RejectAction
protected function notify(VacationRequest $vacationRequest): void
{
$users = User::query()
->where("id", "!=", $vacationRequest->user->id)
->whereIn("role", [Role::TechnicalApprover, Role::AdministrativeApprover, Role::Administrator])
->get();