diff options
author | Douwe Maan <douwe@gitlab.com> | 2019-07-24 21:41:55 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-07-24 21:41:55 +0300 |
commit | 60701f5c52077b4aafd87012a4beb3d6fcc6ad37 (patch) | |
tree | 98099c8f9dee31e6131edbaea7feeeec345ba6e3 /app/helpers | |
parent | 85a304d2ac8bf52a4d8dd5e3fccd2e3ec6b7d595 (diff) | |
parent | f5ec6b4e1296475aa4930b504ed2e3d329631fcb (diff) |
Merge branch '62217-follow-up-from-fix-display-of-promote-to-group-label' into 'master'
Remove project param from `#show_label_issuables_link?`
Closes #62217
See merge request gitlab-org/gitlab-ce!31038
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/labels_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb index db4f29cd996..2ed016beea4 100644 --- a/app/helpers/labels_helper.rb +++ b/app/helpers/labels_helper.rb @@ -4,11 +4,10 @@ module LabelsHelper extend self include ActionView::Helpers::TagHelper - def show_label_issuables_link?(label, issuables_type, current_user: nil, project: nil) + def show_label_issuables_link?(label, issuables_type, current_user: nil) return true unless label.project_label? - return true unless project - project.feature_available?(issuables_type, current_user) + label.project.feature_available?(issuables_type, current_user) end # Link to a Label |