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

fixes #3391

Closes #3391

Merge request studip/studip!2656
parent 53093b02
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,10 @@ class ConsultationMailer ...@@ -17,7 +17,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.
Finish editing this message first!
Please register or to comment