diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 96d790c6437..492277b43be 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -42,8 +42,6 @@ class SearchController < ApplicationController case search_params[:scope] when 'all' nil - when 'my_projects' - User.current.memberships.map(&:project) when 'current_project' @project else diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 28992e7dd3c..feffcd41c8d 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -91,7 +91,6 @@ module SearchHelper def project_select_tag options = [[l(:label_project_all), 'all']] - options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty? options << [l(:label_and_its_subprojects, @project.name), 'subprojects'] unless @project.nil? || @project.descendants.active.empty? options << [@project.name, 'current_project'] unless @project.nil? styled_select_tag('scope', options_for_select(options, current_scope)) if options.size > 1