From 7754f77728eaa863324f10b246c50bf7e907d79b Mon Sep 17 00:00:00 2001 From: "Paul.Li" Date: Mon, 7 Oct 2024 08:52:29 -0600 Subject: [PATCH] feat: update the update role of the form support doc --- apps/form-service/src/form/types/fileTypes.ts | 14 ++++---------- apps/form-service/src/main.ts | 3 +-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/apps/form-service/src/form/types/fileTypes.ts b/apps/form-service/src/form/types/fileTypes.ts index fd8ef6258..1826814be 100644 --- a/apps/form-service/src/form/types/fileTypes.ts +++ b/apps/form-service/src/form/types/fileTypes.ts @@ -10,14 +10,8 @@ export const GeneratedSupportingDocFileType: FileType = { anonymousRead: false, securityClassification: SecurityClassifications.ProtectedB, readRoles: [`urn:ads:platform:form-service:${FormServiceRoles.FileReader}`], - updateRoles: [`urn:ads:platform:form-service:${FormServiceRoles.FileUploader}`], -}; - -export const GeneratedAnonymousSupportingDocFileType: FileType = { - id: FORM_SUPPORTING_ANONYMOUS_DOCS, - name: 'Form anonymous supporting documents', - anonymousRead: true, - securityClassification: SecurityClassifications.ProtectedA, - readRoles: [`urn:ads:platform:form-service:${FormServiceRoles.IntakeApp}`], - updateRoles: [`urn:ads:platform:form-service:${FormServiceRoles.IntakeApp}`], + updateRoles: [ + `urn:ads:platform:form-service:${FormServiceRoles.FileUploader}`, + `urn:ads:platform:form-service:${FormServiceRoles.IntakeApp}`, + ], }; diff --git a/apps/form-service/src/main.ts b/apps/form-service/src/main.ts index ffc85cea8..98a2b4085 100644 --- a/apps/form-service/src/main.ts +++ b/apps/form-service/src/main.ts @@ -32,7 +32,6 @@ import { FormStatusSetToDraftDefinition, SubmissionDispositionedDefinition, GeneratedSupportingDocFileType, - GeneratedAnonymousSupportingDocFileType, SUBMITTED_FORM, SubmittedFormPdfTemplate, SubmittedFormPdfUpdatesStream, @@ -116,7 +115,7 @@ const initializeApp = async (): Promise => { description: 'Tester role for form service that allows access to forms without open intakes.', }, ], - fileTypes: [GeneratedSupportingDocFileType, GeneratedAnonymousSupportingDocFileType], + fileTypes: [GeneratedSupportingDocFileType], events: [ FormCreatedDefinition, FormDeletedDefinition,