aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-11 15:22:00 +0100
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2013-01-11 15:22:32 +0100
commitf75396cb1754322c72e66bc4e588b88af4d9ea71 (patch)
tree876177369c753895d12e3932dd52c54a9360a1f8 /plugins
parentb3ac1f07b44394fe08f467ac104ea1e797d2e4f3 (diff)
downloadsonarqube-f75396cb1754322c72e66bc4e588b88af4d9ea71.tar.gz
sonarqube-f75396cb1754322c72e66bc4e588b88af4d9ea71.zip
SONAR-3932 problems with "Raw" link in Violations drilldown
=> For user without Code Viewer role
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties1
-rw-r--r--plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/dependencies/DependenciesViewer.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
index d9735330d4c..307c8420df9 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
@@ -1075,6 +1075,7 @@ coverage_viewer.overall_tests=All Tests
# GENERIC CODE VIEWER
#
#------------------------------------------------------------------------------
+code_viewer.no_info_displayed_due_to_security=Due to security settings, no information can be displayed.
code_viewer.create_violation.new_rule=New Rule
code_viewer.create_violation.rules=Rules
code_viewer.create_violation.submit=Create Violation
diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/dependencies/DependenciesViewer.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/dependencies/DependenciesViewer.java
index d3294622b4a..5693d2cff82 100644
--- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/dependencies/DependenciesViewer.java
+++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/dependencies/DependenciesViewer.java
@@ -33,7 +33,7 @@ import org.sonar.api.web.UserRole;
@ResourceQualifier({Qualifiers.FILE, Qualifiers.CLASS, Qualifiers.PACKAGE, Qualifiers.PROJECT, Qualifiers.MODULE})
@DefaultTab(metrics = {CoreMetrics.AFFERENT_COUPLINGS_KEY, CoreMetrics.EFFERENT_COUPLINGS_KEY})
@NavigationSection({NavigationSection.RESOURCE_TAB})
-@UserRole(UserRole.USER)
+@UserRole(UserRole.CODEVIEWER)
public class DependenciesViewer extends AbstractRubyTemplate implements RubyRailsPage {
public String getId() {