diff --git a/src/Support/TicketingNotifier.php b/src/Support/TicketingNotifier.php index d9793ee..03b8d48 100644 --- a/src/Support/TicketingNotifier.php +++ b/src/Support/TicketingNotifier.php @@ -47,10 +47,12 @@ final class TicketingNotifier self::REPLIED => [ 'Your help desk ticket was answered', 'Sent to the person who raised a ticket when an agent replies. Internal notes never trigger this.', + ['staff', 'student'], ], self::ASSIGNED => [ 'A help desk ticket was assigned to you', 'Sent to an agent when a ticket is assigned to them by somebody else.', + ['staff'], ], ]; @@ -77,9 +79,9 @@ final class TicketingNotifier } try { - foreach (self::CATEGORIES as $key => [$label, $description]) { + foreach (self::CATEGORIES as $key => [$label, $description, $audience]) { \Central\Notifications\Support\NotificationRegistry::register( - $key, $label, $description, ['mail'], mandatory: false, + $key, $label, $description, ['mail'], mandatory: false, audience: $audience, ); } } catch (\Throwable $e) {