fixed bug
This commit is contained in:
@@ -33,7 +33,7 @@ const sidebarMenu = [
|
||||
route: "/dashboard/reports",
|
||||
icon: <AssessmentIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
selected: false,
|
||||
permission: "all",
|
||||
permission: "view_reports_navgan",
|
||||
},
|
||||
{
|
||||
key: "sidebar.loan-history",
|
||||
@@ -42,7 +42,7 @@ const sidebarMenu = [
|
||||
route: "/dashboard/loan-history",
|
||||
icon: <SecurityIcon sx={{width: 'inherit', height: 'inherit'}}/>,
|
||||
selected: false,
|
||||
permission: "manage_navgan_loan",
|
||||
permission: "view_navgan_loans",
|
||||
},
|
||||
], [
|
||||
{
|
||||
|
||||
@@ -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"]}}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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"]}}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user