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

make sure users have to be able to read_pipeline

to get pipeline failed notifications
parent 46d0bfdc
......@@ -308,7 +308,8 @@ class NotificationService
recipients ||= NotificationRecipientService.notifiable_users(
[pipeline.user], pipeline.project, :watch,
custom_action: :"#{pipeline.status}_pipeline"
custom_action: :"#{pipeline.status}_pipeline",
read_ability: :read_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