Skip to content

Commit

Permalink
Merge pull request #3538 from GovAlta/feat/CS-3574
Browse files Browse the repository at this point in the history
feat: update the update role of the form support doc file type
  • Loading branch information
solittlework authored Oct 7, 2024
2 parents 1cf046a + 7754f77 commit be04433
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
14 changes: 4 additions & 10 deletions apps/form-service/src/form/types/fileTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
],
};
3 changes: 1 addition & 2 deletions apps/form-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
FormStatusSetToDraftDefinition,
SubmissionDispositionedDefinition,
GeneratedSupportingDocFileType,
GeneratedAnonymousSupportingDocFileType,
SUBMITTED_FORM,
SubmittedFormPdfTemplate,
SubmittedFormPdfUpdatesStream,
Expand Down Expand Up @@ -116,7 +115,7 @@ const initializeApp = async (): Promise<express.Application> => {
description: 'Tester role for form service that allows access to forms without open intakes.',
},
],
fileTypes: [GeneratedSupportingDocFileType, GeneratedAnonymousSupportingDocFileType],
fileTypes: [GeneratedSupportingDocFileType],
events: [
FormCreatedDefinition,
FormDeletedDefinition,
Expand Down

0 comments on commit be04433

Please sign in to comment.