From e4ef32fcc71bae444b0102905641e8f013c542db Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Wed, 15 May 2013 16:38:16 +0200 Subject: [PATCH] SONAR-4293 Dot not display the my unresolved issues when not logged --- .../plugins/core/widgets/issues/my_unresolved_issues.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb index b043744408b..dc362dc8f34 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb @@ -1,5 +1,5 @@ <% - if !@project || has_role?(:user, @project) + if current_user && (!@project || has_role?(:user, @project)) search_options = {} search_options['componentRoots'] = @project.key if @project -- 2.39.5