Skip to content
Snippets Groups Projects
Commit 831462c8 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

fixes #3391

Closes #3391

Merge request studip/studip!2656
parent a4364532
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ class ConsultationMailer ...@@ -33,7 +33,10 @@ class ConsultationMailer
public static function sendMessage(?User $sender, User $user, ConsultationBooking $booking, string $subject, ?string $reason = '') public static function sendMessage(?User $sender, User $user, ConsultationBooking $booking, string $subject, ?string $reason = '')
{ {
// Don't send message if user doesn't want it // Don't send message if user doesn't want it
if (!UserConfig::get($user->id)->CONSULTATION_SEND_MESSAGES) { if (
$booking->user_id !== $user->id
&& !UserConfig::get($user->id)->CONSULTATION_SEND_MESSAGES
) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment