make sure users have to be able to read_pipeline

to get pipeline failed notifications
This commit is contained in:
http://jneen.net/ 2017-07-26 09:33:23 -07:00
parent 46d0bfdcb9
commit d45b4065d8
1 changed files with 2 additions and 1 deletions

View File

@ -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?