From 5df4e032ab8b0524da18e1ceb0c28bd44b78ba85 Mon Sep 17 00:00:00 2001 From: Wieland Lindenthal Date: Wed, 9 Jan 2019 16:44:34 +0100 Subject: [PATCH] remove "My projects" from scope --- app/controllers/search_controller.rb | 2 -- app/helpers/search_helper.rb | 1 - 2 files changed, 3 deletions(-) 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