Commit 3676a679 authored by Jarka Košanová's avatar Jarka Košanová

Return true if milestone is not available

parent cdc0142f
......@@ -121,7 +121,7 @@ module Issuable
end
def milestone_available?
return if is_a?(Epic)
return true if is_a?(Epic)
project_id == milestone&.project_id || project.ancestors_upto.compact.include?(milestone&.group)
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