summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-10 15:59:14 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-10 15:59:14 -0700
commit83f7e98d9a672158d5c754307ab471fd50c5b2a3 (patch)
treea1e87bec3ef83aa3ae987a3452be71bccefdc4ed /app/controllers/dashboard_controller.rb
parent8527e8d5996bb5543cb5a13e857b864b466a31f2 (diff)
downloadgitlab-ce-83f7e98d9a672158d5c754307ab471fd50c5b2a3.tar.gz
Add project filter by visibility and tag to explore page
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r--app/controllers/dashboard_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 2822d510e50..b6e300e84b6 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -36,7 +36,6 @@ class DashboardController < ApplicationController
end
@projects = @projects.where(namespace_id: Group.find_by(name: params[:group])) if params[:group].present?
- @projects = @projects.where(visibility_level: params[:visibility_level]) if params[:visibility_level].present?
@projects = @projects.includes(:namespace, :forked_from_project, :tags)
@projects = @projects.tagged_with(params[:tag]) if params[:tag].present?
@projects = @projects.sort(@sort = params[:sort])