From: Julien Lancelot Date: Thu, 18 Jul 2013 06:42:05 +0000 (+0200) Subject: When not logged, do not load favorite issue filters X-Git-Tag: 3.7~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1662850d7f4fbd9685e3f84c1cd8342d42a4bbe8;p=sonarqube.git When not logged, do not load favorite issue filters --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb index 61d477a205c..98f965c30b6 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb @@ -22,7 +22,7 @@ require 'set' class IssuesController < ApplicationController before_filter :init_options - before_filter :load_filters, :only => [:index, :search, :filter, :manage, :toggle_fav] + before_filter :load_fav_filters, :only => [:index, :search, :filter, :manage, :toggle_fav] PAGE_SIZE = 100 @@ -173,8 +173,8 @@ class IssuesController < ApplicationController @options_for_resolutions = Internal.issues.listResolutions().map { |s| [message('issue.resolution.' + s), s] } end - def load_filters - @favourite_filters = Internal.issues.findFavouriteIssueFiltersForCurrentUser() + def load_fav_filters + @favourite_filters = Internal.issues.findFavouriteIssueFiltersForCurrentUser() if logged_in? end def find_filter(id)