Skip to content

Commit 9b99a76

Browse files
committed
feat: default mock policy overrides to enabled
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 725321f commit 9b99a76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/Settings/PolicyWorkbench/usePolicyWorkbench.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ export function createPolicyWorkbenchState() {
717717
settingKey: key,
718718
scope,
719719
targetId,
720-
allowChildOverride: scope !== 'user',
720+
allowChildOverride: true,
721721
value: cloneValue(definition.createEmptyValue(scope)) as PolicySettingValueMap[PolicySettingKey],
722722
}
723723
}
@@ -815,7 +815,7 @@ export function createPolicyWorkbenchState() {
815815
id: editorDraft.value.id ?? `${activeSettingKey.value}-${nextRuleNumber.value++}`,
816816
scope: editorDraft.value.scope,
817817
targetId: editorDraft.value.scope === 'system' ? null : editorDraft.value.targetId,
818-
allowChildOverride: editorDraft.value.scope === 'user' ? false : editorDraft.value.allowChildOverride,
818+
allowChildOverride: editorDraft.value.allowChildOverride,
819819
value: cloneValue(editorDraft.value.value),
820820
}
821821

0 commit comments

Comments
 (0)