make sure users have to be able to read_pipeline
to get pipeline failed notifications
This commit is contained in:
parent
46d0bfdcb9
commit
d45b4065d8
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue