diff --git a/src/core/data/sidebarMenu.jsx b/src/core/data/sidebarMenu.jsx index f2e6e40..d53267f 100644 --- a/src/core/data/sidebarMenu.jsx +++ b/src/core/data/sidebarMenu.jsx @@ -33,7 +33,7 @@ const sidebarMenu = [ route: "/dashboard/reports", icon: , selected: false, - permission: "all", + permission: "view_reports_navgan", }, { key: "sidebar.loan-history", @@ -42,7 +42,7 @@ const sidebarMenu = [ route: "/dashboard/loan-history", icon: , selected: false, - permission: "manage_navgan_loan", + permission: "view_navgan_loans", }, ], [ { diff --git a/src/pages/dashboard/loan-history/index.jsx b/src/pages/dashboard/loan-history/index.jsx index d84d43e..04ab36a 100644 --- a/src/pages/dashboard/loan-history/index.jsx +++ b/src/pages/dashboard/loan-history/index.jsx @@ -15,7 +15,7 @@ export async function getServerSideProps({req, locale}) { title: "Dashboard.loan_history", isBot, locale, - layout: {name: 'DashboardLayout', props: {permissions: ["manage_navgan_loan"]}} + layout: {name: 'DashboardLayout', props: {permissions: ["view_navgan_loans"]}} }, }; } diff --git a/src/pages/dashboard/reports/index.jsx b/src/pages/dashboard/reports/index.jsx index 9dba421..7a7de52 100644 --- a/src/pages/dashboard/reports/index.jsx +++ b/src/pages/dashboard/reports/index.jsx @@ -14,7 +14,7 @@ export async function getServerSideProps({req, locale}) { messages: (await import(`&/locales/${locale}/app.json`)).default, title: "Dashboard.reports", isBot, - layout: {name: 'DashboardLayout'} + layout: {name: 'DashboardLayout', props: {permissions: ["view_reports_navgan"]}} }, }; }