aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-01-21 15:44:37 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-01-21 16:50:42 +0100
commitd4c4d4ddc60769dca4d5ad2ab95b538cfc505056 (patch)
tree19f462fb1435540fcdb5428c10201d1126cdd228 /plugins
parent32fce03ccd2032023fa2ca88699666b002ef1b33 (diff)
downloadsonarqube-d4c4d4ddc60769dca4d5ad2ab95b538cfc505056.tar.gz
sonarqube-d4c4d4ddc60769dca4d5ad2ab95b538cfc505056.zip
SONAR-5893 Fix visibility of tag cloud widget for anonymous user
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb
index 7bdbaccda28..f64ac95dd63 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issue_tag_cloud.html.erb
@@ -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