summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-06-05 00:10:24 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-06-05 00:10:24 +0000
commitdab00e6929412b7371a246ad37f858611b7f2757 (patch)
treee096293d5b5a1f0a332b4b7697e896e1041d3483 /app/helpers
parent54cc3b64929dfe2eea562089b5fd6656a50ed2ae (diff)
downloadgitlab-ce-dab00e6929412b7371a246ad37f858611b7f2757.tar.gz
Add render_projects method to controller
- Render EE specific partial if exists
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index e587cf4045d..8dee842a22d 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -241,6 +241,7 @@ module ProjectsHelper
# TODO: Remove this method when removing the feature flag
# https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/11209#note_162234863
+ # make sure to remove from the EE specific controller as well: ee/app/controllers/ee/dashboard/projects_controller.rb
def show_projects?(projects, params)
Feature.enabled?(:project_list_filter_bar) || !!(params[:personal] || params[:name] || any_projects?(projects))
end