From b2337772ad20e304b8e997be2b3e6747b18319fc Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Thu, 17 Oct 2024 12:07:59 +0200 Subject: [PATCH] Display folder field in evidence when creating from it from an applied control As an applied control may be global, inheriting its domain may cause errors if the user attempting to create an evidence inside it may not have the permission to create an evidence in the global domain. --- .../src/lib/components/Forms/ModelForm/EvidenceForm.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/lib/components/Forms/ModelForm/EvidenceForm.svelte b/frontend/src/lib/components/Forms/ModelForm/EvidenceForm.svelte index cf42cab3e..6d50f2d6c 100644 --- a/frontend/src/lib/components/Forms/ModelForm/EvidenceForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/EvidenceForm.svelte @@ -27,7 +27,7 @@ field="attachment" label={m.attachment()} /> -{#if !(initialData.applied_controls || initialData.requirement_assessments)} +{#if !initialData.requirement_assessments}