Skip to content

Commit 6f99631

Browse files
committed
fix(Assignments): Don't send notifications for userId == null
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 89c633e commit 6f99631

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/Service/NotificationService.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ public function sendNewImageFileNotification(
136136
}
137137

138138
public function sendAssignmentNotification(?string $userId, Task $task, Session $session): void {
139+
if ($userId === null) {
140+
return;
141+
}
139142
$manager = $this->notificationManager;
140143
$notification = $manager->createNotification();
141144

0 commit comments

Comments
 (0)