summaryrefslogtreecommitdiff
path: root/app/helpers/labels_helper.rb
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-07-23 17:30:25 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-07-23 17:30:25 +0800
commitf5ec6b4e1296475aa4930b504ed2e3d329631fcb (patch)
tree507c321ee68eee4115d527cb3e5b910ba3e622cd /app/helpers/labels_helper.rb
parent17fe03078d003dc61a456da8d3e41e3e52ba4f54 (diff)
downloadgitlab-ce-f5ec6b4e1296475aa4930b504ed2e3d329631fcb.tar.gz
Remove project from show_label_issuables_link?62217-follow-up-from-fix-display-of-promote-to-group-label
The project param is unnecessary here
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r--app/helpers/labels_helper.rb5
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