Commit e7e05e17 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '350603-cablett-owner-notification' into 'master'

Handle multiple owners in notification service

See merge request gitlab-org/gitlab!79089
parents 0d0d6cf1 969dc0f3
......@@ -1519,6 +1519,10 @@ class Project < ApplicationRecord
group || namespace.try(:owner)
end
def owners
Array.wrap(owner)
end
def first_owner
obj = owner
......
......@@ -121,7 +121,7 @@ module EE
end
def incident_management_owners(project)
return [project.owner] unless project.group
return project.owners if project.personal?
MembersFinder
.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