]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4293 Dot not display the my unresolved issues when not logged
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 15 May 2013 14:38:16 +0000 (16:38 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 15 May 2013 14:38:24 +0000 (16:38 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/my_unresolved_issues.html.erb

index b043744408b0901f9abf369fff14262faad5f79a..dc362dc8f34367da9e0ba805c46bd497139bbeb8 100644 (file)
@@ -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