Commit 969dc0f3 authored by charlie ablett's avatar charlie ablett

Handle multiple owners in notification service

parent 5e6b9a7d
...@@ -1519,6 +1519,10 @@ class Project < ApplicationRecord ...@@ -1519,6 +1519,10 @@ class Project < ApplicationRecord
group || namespace.try(:owner) group || namespace.try(:owner)
end end
def owners
Array.wrap(owner)
end
def first_owner def first_owner
obj = owner obj = owner
......
...@@ -121,7 +121,7 @@ module EE ...@@ -121,7 +121,7 @@ module EE
end end
def incident_management_owners(project) def incident_management_owners(project)
return [project.owner] unless project.group return project.owners if project.personal?
MembersFinder MembersFinder
.new(project, nil, params: { active_without_invites_and_requests: true }) .new(project, nil, params: { active_without_invites_and_requests: true })
......
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