Commit 0c112315 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 ca119eb9
......@@ -332,7 +332,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