From 70b283ee6bcb934f56150e6eda422dd6d06fe2d3 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 25 Apr 2013 15:25:01 +0200 Subject: [PATCH] SONAR-4210 level parameter should not be required --- .../WEB-INF/app/controllers/rules_configuration_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb index 74ef325c95d..12aa5b8d79c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/rules_configuration_controller.rb @@ -97,7 +97,7 @@ class RulesConfigurationController < ApplicationController def activate_rule verify_post_request access_denied unless has_role?(:profileadmin) - require_parameters :id, :rule_id, :level + require_parameters :id, :rule_id profile = Profile.find(params[:id].to_i) if profile rule=Rule.first(:conditions => ["id = ? and status <> ?", params[:rule_id].to_i, Rule::STATUS_REMOVED]) -- 2.39.5