Commit 3829d724 authored by http://jneen.net/'s avatar http://jneen.net/

require that the user be able to :read_build

to get a pipeline_failed email
parent d45b4065
......@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment