Aligned changes to Issuable with EE

This commit is contained in:
Patrick Derichs 2019-04-18 10:33:05 +02:00
parent 613ce6446e
commit 07cea951d2

View file

@ -128,10 +128,6 @@ module Issuable
assignees.count > 1 assignees.count > 1
end end
def milestone_available?
project_id == milestone&.project_id || project.ancestors_upto.compact.include?(milestone&.group)
end
private private
def milestone_is_valid def milestone_is_valid
@ -277,6 +273,10 @@ module Issuable
end end
end end
def milestone_available?
project_id == milestone&.project_id || project.ancestors_upto.compact.include?(milestone&.group)
end
def assignee_or_author?(user) def assignee_or_author?(user)
author_id == user.id || assignees.exists?(user.id) author_id == user.id || assignees.exists?(user.id)
end end