Skip to content

Commit

Permalink
Merge pull request #390 from intuitem/hotfix/disallow-editing-assessm…
Browse files Browse the repository at this point in the history
…ent-referential

Disable risk_matrix and framework fields for existing assessments
  • Loading branch information
ab-smith authored May 7, 2024
2 parents b6be457 + 5fda273 commit 1fc095e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/lib/components/Forms/ModelForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<Select {form} options={model.selectOptions['status']} field="status" label={m.status()} />
<AutocompleteSelect
{form}
disabled={object.id}
options={getOptions({ objects: model.foreignKeys['risk_matrix'] })}
field="risk_matrix"
label={m.riskMatrix()}
Expand Down Expand Up @@ -329,6 +330,7 @@
<Select {form} options={model.selectOptions['status']} field="status" label={m.status()} />
<AutocompleteSelect
{form}
disabled={object.id}
options={getOptions({ objects: model.foreignKeys['framework'] })}
field="framework"
label={m.framework()}
Expand Down

0 comments on commit 1fc095e

Please sign in to comment.