verification

This commit is contained in:
Pete Matsyburka
2024-12-01 00:10:07 +02:00
parent 05b7cc9fa6
commit 5724159b7b
22 changed files with 623 additions and 31 deletions
+11
View File
@@ -128,6 +128,17 @@ module Submitters
next
end
if field['type'] == 'verification'
acc[field['uuid']] =
if submitter.submission_events.exists?(event_type: :complete_verification)
I18n.t(:verified, locale: :en)
elsif field['required']
raise ValidationError, 'ID Not Verified'
end
next
end
value = field['default_value']
next if value.blank?