Commit 07cea951 authored by Patrick Derichs's avatar Patrick Derichs

Aligned changes to Issuable with EE

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