Commit 60f69c53 authored by Aishwarya Subramanian's avatar Aishwarya Subramanian

Removed deletion of parameter when feature is unavailable

parent a080a500
......@@ -5,10 +5,7 @@ module ComplianceManagement
def compliance_pipeline_configuration_available?
return true unless params.key?(:pipeline_configuration_full_path)
available = can?(current_user, :manage_group_level_compliance_pipeline_config, framework)
params.delete(:pipeline_configuration_full_path) unless available
available
can?(current_user, :manage_group_level_compliance_pipeline_config, framework)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment