Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-07-23 12:30:25 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-07-23 12:30:25 +0300
commitf5ec6b4e1296475aa4930b504ed2e3d329631fcb (patch)
tree507c321ee68eee4115d527cb3e5b910ba3e622cd /app/helpers/labels_helper.rb
parent17fe03078d003dc61a456da8d3e41e3e52ba4f54 (diff)
Remove project from show_label_issuables_link?
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