]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5703 Hide context on inactive rule when user cannot activate it on context...
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 10:19:41 +0000 (12:19 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 10:19:45 +0000 (12:19 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee

index 67776649b39d239e1c42bf11fb854333246b30c7..16ba0bb792566a8e36c913f9e4cea3251160a07b 100644 (file)
@@ -152,7 +152,7 @@ define [
         @$(@qualityProfilesRegion.el).show()
         @qualityProfilesRegion.show @qualityProfilesView
 
-        if @options.app.getQualityProfile()
+        if @options.app.getQualityProfile() and (@options.app.canWrite or @contextProfile.has('severity'))
           @$(@contextRegion.el).show()
           @contextRegion.show @contextQualityProfileView
         else