From 8b444d0ac83127693473d466cbe9b0c289d678fb Mon Sep 17 00:00:00 2001 From: David Gageot Date: Fri, 18 May 2012 11:14:00 +0200 Subject: [PATCH] SONAR-3483 "My Filters" shouldn't display filters which are owned by another user --- .../main/webapp/WEB-INF/app/controllers/filters_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/filters_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/filters_controller.rb index d5097476165..a60379f9998 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/filters_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/filters_controller.rb @@ -29,7 +29,7 @@ class FiltersController < ApplicationController def manage if is_admin? - @filters = ::Filter.find(:all, :conditions => ['user_id=? or shared=?', current_user.id, true]) + @filters = ::Filter.find(:all, :conditions => ['user_id=? or (shared=? and user_id is null)', current_user.id, true]) else @filters = ::Filter.find(:all, :conditions => {:user_id => current_user.id}) end -- 2.39.5