]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5893 Fix visibility of tag cloud widget for anonymous user
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 21 Jan 2015 14:44:37 +0000 (15:44 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 21 Jan 2015 15:50:42 +0000 (16:50 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb

index 7bdbaccda286e660e7263815e3e1f29f4ec8ffe5..f64ac95dd63d5ebfcb84343d3528fad603c00fb9 100644 (file)
@@ -2,7 +2,7 @@
   containerId = 'issue-tag-cloud' + widget.id.to_s
   maxItems = widget_properties['maxItems'].to_i
 
-  if current_user && has_role?(:user, @project) && !Internal.issues.listTagsForComponent(@project.uuid, maxItems).isEmpty()
+  if has_role?(:user, @project) && !Internal.issues.listTagsForComponent(@project.uuid, maxItems).isEmpty()
     search_options = {}
     if @project
       search_options['componentUuids'] = @project.uuid