summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/search_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index 0abac94d3..13a882a88 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -29,7 +29,7 @@ class SearchController < ApplicationController
when 'all'
nil
when 'my_projects'
- User.current.memberships.collect(&:project)
+ User.current.projects
when 'subprojects'
@project ? (@project.self_and_descendants.active.to_a) : nil
else