aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-03-29 11:17:33 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-03-29 11:17:33 +0200
commitf7a3046a0d84e501fdfdd031bcdde7653bca6658 (patch)
tree2f7da7308987b68a6d7f02ba570f2eb0bc3608c9 /sonar-server/src
parent29823322aedce1008175c2e8b389bf5abb02b56a (diff)
downloadsonarqube-f7a3046a0d84e501fdfdd031bcdde7653bca6658.tar.gz
sonarqube-f7a3046a0d84e501fdfdd031bcdde7653bca6658.zip
SONAR-2197 Display Coverage tab only if coverage/it-coverage measures
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/DefaultPages.java1
1 files changed, 1 insertions, 0 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 176601118e1..1dc992e0856 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
@@ -73,6 +73,7 @@ public final class DefaultPages {
CoreMetrics.NEW_IT_COVERAGE_KEY, CoreMetrics.NEW_IT_UNCOVERED_LINES_KEY, CoreMetrics.NEW_IT_LINE_COVERAGE_KEY,
CoreMetrics.NEW_IT_LINES_TO_COVER_KEY, CoreMetrics.NEW_IT_BRANCH_COVERAGE_KEY, CoreMetrics.NEW_IT_CONDITIONS_TO_COVER_KEY, CoreMetrics.NEW_IT_UNCOVERED_CONDITIONS_KEY
})
+ @RequiredMeasures(anyOf = {CoreMetrics.COVERAGE_KEY, CoreMetrics.IT_COVERAGE_KEY})
@UserRole(UserRole.CODEVIEWER)
private static final class CoverageTab implements RubyRailsPage {
public String getTemplate() {