hide menus sidebar in polres

This commit is contained in:
Sabda Yagra 2025-09-10 12:21:34 +07:00
parent 397b30aa75
commit 2c7b46bcc3
1 changed files with 58 additions and 50 deletions

View File

@ -2818,6 +2818,8 @@ export function getMenuList(pathname: string, t: any): Group[] {
}, },
], ],
}, },
...(!hideForRole3
? [
{ {
groupLabel: "", groupLabel: "",
id: "blog", id: "blog",
@ -2832,6 +2834,8 @@ export function getMenuList(pathname: string, t: any): Group[] {
}, },
], ],
}, },
]
: []),
{ {
groupLabel: "", groupLabel: "",
id: "curatedcontent", id: "curatedcontent",
@ -2874,6 +2878,8 @@ export function getMenuList(pathname: string, t: any): Group[] {
}, },
], ],
}, },
...(!hideForRole3
? [
{ {
groupLabel: "", groupLabel: "",
id: "settings", id: "settings",
@ -2910,6 +2916,8 @@ export function getMenuList(pathname: string, t: any): Group[] {
}, },
], ],
}, },
]
: []),
]; ];
} else if (Number(userParentLevelId) == 761) { } else if (Number(userParentLevelId) == 761) {
menusSelected = [ menusSelected = [