From 114dfbc310b0f045d3aec130b0f745bac1511e5c Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Mon, 26 Feb 2024 11:33:20 +0100 Subject: [PATCH] Display policies in sidebar and internationalize model table --- frontend/src/lib/components/SideBar/navData.ts | 3 ++- frontend/src/lib/utils/table.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/SideBar/navData.ts b/frontend/src/lib/components/SideBar/navData.ts index 57f31f242..dd6a5b0a3 100644 --- a/frontend/src/lib/components/SideBar/navData.ts +++ b/frontend/src/lib/components/SideBar/navData.ts @@ -65,7 +65,8 @@ export const navData = { { name: 'policies', fa_icon: 'fa-solid fa-user', - href: '/policies' + href: '/policies', + permissions: ['view_securitymeasure'] }, { name: 'riskMatrices', diff --git a/frontend/src/lib/utils/table.ts b/frontend/src/lib/utils/table.ts index 6465c6903..8c134a025 100644 --- a/frontend/src/lib/utils/table.ts +++ b/frontend/src/lib/utils/table.ts @@ -48,7 +48,7 @@ export const listViewFields = { body: ['name', 'description', 'category', 'eta', 'folder', 'security_function'] }, policies: { - head: ['Name', 'Description', 'ETA', 'Domain', 'Security function'], + head: ['name', 'description', 'eta', 'domain', 'securityFunction'], body: ['name', 'description', 'eta', 'folder', 'security_function'] }, 'security-functions': {