diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-07-28 21:38:35 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 19:07:18 +0300 |
commit | 3829d7245a446fe80745f5e7c082e005fc013365 (patch) | |
tree | 181d961fcd22b556c66e486810a6312f98e60d25 /app/services | |
parent | d45b4065d8e0b6cc893ccde66e0c37f459ca901b (diff) |
require that the user be able to :read_build
to get a pipeline_failed email
Diffstat (limited to 'app/services')
-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? |