fixed bug

This commit is contained in:
AmirHossein Mahmoodi
2023-12-20 15:18:06 +03:30
parent 2d22f12dc4
commit 4a99933c42
3 changed files with 4 additions and 4 deletions

View File

@@ -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",
},
], [
{

View File

@@ -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"]}}
},
};
}

View File

@@ -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"]}}
},
};
}