verification

This commit is contained in:
Pete Matsyburka committed 2024-12-01 11:23:51 +02:00
1 parent 05b7cc9fa6
commit 5724159b7b
22 files changed
+623 -31

No files matched your search

+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?