diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-04-18 10:33:05 +0200 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-04-18 10:33:05 +0200 |
commit | 07cea951d255878257586a011fc25c372b9d691c (patch) | |
tree | 3b8873af8e903a3da1433fd802b336b2bed294d9 /app | |
parent | 613ce6446e76bc0544c8abe8611c3963871726b0 (diff) | |
download | gitlab-ce-07cea951d255878257586a011fc25c372b9d691c.tar.gz |
Aligned changes to Issuable with EEce-issue-10671
Diffstat (limited to 'app')
-rw-r--r-- | app/models/concerns/issuable.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index 3232c51bfbd..775aaa44e5b 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -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 |