]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5452 Do not display action plan widget on none project dashboard
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 15 Jul 2014 07:51:20 +0000 (09:51 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 15 Jul 2014 07:51:20 +0000 (09:51 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb

index cb5b925d04157662d3b4d15bac66e429adfe1a8f..db9c35fa315d29832308f9a74fb3a9ebc106e288 100644 (file)
@@ -1,5 +1,6 @@
 <%
-   if has_role?(:user, @project)
+   # This widget should only be display on root projects, not on modules
+   if @project.root_project == @project && has_role?(:user, @project)
      action_plans = Internal.issues.findActionPlanStats(@resource.key)
      open_action_plans = action_plans.select {|plan| plan.isOpen()}