diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-10-29 18:58:02 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-10-29 18:58:02 +0300 |
commit | ca324614b5da3f1bb2fcab44cc6c483a712939b7 (patch) | |
tree | 463d377338a0718f4107366cc0b8b8a39be4723b /app/services | |
parent | 64d59e7e1cdd7ede2f308665cc482869150db4fe (diff) | |
parent | 920c7a4abe28dac1d1b26098ece2d912c01d9584 (diff) |
Merge branch 'security-33689-post-filter-search-results-ce' into 'master'
Filter out search results based on permissions to avoid bugs leaking data
See merge request gitlab/gitlabhq!3493
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/notification_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index b56b2cf14e3..1709474a6c7 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -281,7 +281,7 @@ class NotificationService end def send_new_note_notifications(note) - notify_method = "note_#{note.to_ability_name}_email".to_sym + notify_method = "note_#{note.noteable_ability_name}_email".to_sym recipients = NotificationRecipientService.build_new_note_recipients(note) recipients.each do |recipient| |