Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-23 12:10:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-23 12:10:51 +0300
commit9134f0b5004a86687259332bd7edd2fa67dfb76b (patch)
treec7b0e9a9b26c28674e5311df07d0c0324075b8eb /app/services/notification_service.rb
parent76a58e19f051ceb89304172f750a34bf48c19b31 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 1988d34ee1a..d24f1ce399e 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -430,6 +430,7 @@ class NotificationService
def send_service_desk_notification(note)
return unless note.noteable_type == 'Issue'
return if note.confidential
+ return unless note.project.service_desk_enabled?
issue = note.noteable
recipients = issue.email_participants_emails