Skip to content

Commit 5b85466

Browse files
Fix document type check for passport issuance
1 parent 780d5b5 commit 5b85466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/port/proto/proto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def addDscCertificate(self, dsc: DocumentSignerCertificate) -> database.DscStora
506506

507507
# 3.) Check that DSC can sign and issue passport document
508508
if dsc.documentTypes is not None:
509-
if not dsc.documentTypes.contains(ef.mrz.DocumentType.Passport.value):
509+
if not dsc.documentTypes.contains(ef.dg1.DocumentType.Passport.value):
510510
raise peDscCantIssuePassport
511511

512512
# 4.) Find the CSCA certificate that issued DSC.

0 commit comments

Comments
 (0)