From 8f27e7f29b5094345d9fd1852219c7b5ec701356 Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Wed, 12 Feb 2025 12:31:56 +0100 Subject: [PATCH] - saving progress; --- src/layouts/DefaultLayout/components/AppSidebar/index.js | 7 +++++++ src/routes.js | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/layouts/DefaultLayout/components/AppSidebar/index.js b/src/layouts/DefaultLayout/components/AppSidebar/index.js index c449022..80d13fc 100644 --- a/src/layouts/DefaultLayout/components/AppSidebar/index.js +++ b/src/layouts/DefaultLayout/components/AppSidebar/index.js @@ -138,6 +138,13 @@ const AppSidebar = () => { id: 15, enable: intersection(permissions, ['APPLY_CALLS']).length }, + { + label: __('Documenti', 'gepafin'), + icon: 'pi pi-chart-bar', + href: '/documenti', + id: 16, + enable: intersection(permissions, ['APPLY_CALLS']).length + }, { label: __('Log di Sistema', 'gepafin'), icon: 'pi pi-receipt', diff --git a/src/routes.js b/src/routes.js index f5555e3..cec0743 100644 --- a/src/routes.js +++ b/src/routes.js @@ -243,6 +243,12 @@ const routes = ({ role, chosenCompanyId }) => { {'ROLE_PRE_INSTRUCTOR' === role ? : null} {'ROLE_INSTRUCTOR_MANAGER' === role ? : null} }/> + + {'ROLE_SUPER_ADMIN' === role ? : null} + {'ROLE_BENEFICIARY' === role ? : null} + {'ROLE_PRE_INSTRUCTOR' === role ? : null} + {'ROLE_INSTRUCTOR_MANAGER' === role ? : null} + }/> }/> }/>