Commit ae94bd46 authored by James Lopez's avatar James Lopez

Merge branch 'jh-skip_true_up' into 'master'

Account for skip_true_up flag in License validation

See merge request gitlab-org/gitlab!65793
parents dfc21444 0e06171b
......@@ -498,6 +498,8 @@ class License < ApplicationRecord
end
def validate_with_trueup?
return false if restricted_attr(:skip_true_up)
[restricted_attr(:trueup_quantity),
restricted_attr(:trueup_from),
restricted_attr(:trueup_to)].all?(&:present?)
......
This diff is collapsed.
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