summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-06 12:40:22 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-09 14:16:20 +0100
commit99935e1cc833c49694d063987ade052fbc84f163 (patch)
treef83cb7b1ce63db0f3cd741e4ada8242cfe377975
parentd18ffa058057e6afc27756e0ab22f61531217464 (diff)
downloadsonarqube-99935e1cc833c49694d063987ade052fbc84f163.tar.gz
sonarqube-99935e1cc833c49694d063987ade052fbc84f163.zip
SONAR-4773 Fix issue for Design component
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java3
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java b/sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java
index cef776f630f..0e5b7235f06 100644
--- a/sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java
+++ b/sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java
@@ -105,8 +105,7 @@ public final class DefaultPages {
CoreMetrics.TECHNICAL_DEBT_KEY, CoreMetrics.NEW_TECHNICAL_DEBT_KEY
})
@ResourceQualifier(
- value = {Qualifiers.VIEW, Qualifiers.SUBVIEW, Qualifiers.PROJECT, Qualifiers.MODULE, Qualifiers.PACKAGE, Qualifiers.DIRECTORY, Qualifiers.FILE, Qualifiers.CLASS,
- Qualifiers.UNIT_TEST_FILE})
+ value = {Qualifiers.FILE, Qualifiers.CLASS, Qualifiers.UNIT_TEST_FILE})
@UserRole(UserRole.USER)
private static final class IssuesTab implements RubyRailsPage {
public String getTemplate() {
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
index 73f57e5c1e8..8790e771389 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
@@ -176,7 +176,7 @@ class DrilldownController < ApplicationController
java_facade.getResourceTabsForMetric(resource.scope, resource.qualifier, resource.language, resource.last_snapshot.metric_keys.to_java(:string), metric_key).each do |tab|
tab.getUserRoles().each do |role|
if has_role?(role, resource)
- return resource.file?
+ return true
end
end
end