diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-07-28 11:38:35 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 09:07:18 -0700 |
commit | 3829d7245a446fe80745f5e7c082e005fc013365 (patch) | |
tree | 181d961fcd22b556c66e486810a6312f98e60d25 /app/services/notification_service.rb | |
parent | d45b4065d8e0b6cc893ccde66e0c37f459ca901b (diff) | |
download | gitlab-ce-3829d7245a446fe80745f5e7c082e005fc013365.tar.gz |
require that the user be able to :read_build
to get a pipeline_failed email
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r-- | app/services/notification_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index c330d62a2ce..e9a67cac4d6 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -309,7 +309,8 @@ class NotificationService recipients ||= NotificationRecipientService.notifiable_users( [pipeline.user], pipeline.project, :watch, custom_action: :"#{pipeline.status}_pipeline", - read_ability: :read_pipeline, + read_ability: :read_build, + target: pipeline ).map(&:notification_email) if recipients.any? |