Two bug fixes

This commit is contained in:
Dan Milne
2025-12-01 19:54:47 +11:00
parent 54d9c3a0d9
commit f0ad3b2c90
2 changed files with 3 additions and 3 deletions

View File

@@ -153,8 +153,8 @@ validate :targets_must_be_array
return nil unless matches_network_range?(network_range)
rule = Rule.create!(
rule_type: 'network',
action: policy_action,
waf_rule_type: 'network',
waf_action: policy_action,
network_range: network_range,
waf_policy: self,
user: user,