提交
This commit is contained in:
1 parent
9345cf4ad8
commit
c3bd2c00ae
51 files changed
+14486
-15765
No files matched your search
@@ -12,7 +12,9 @@ export function filterVisibleEntries(
|
||||
opts: { isSuperAdmin: boolean; all: boolean; menuCodes: string[] },
|
||||
phase: number = BX_MENU_CURRENT_PHASE,
|
||||
): BxMenuEntry[] {
|
||||
return BX_MENU_CATALOG.filter((e) => e.phase <= phase && canAccess(e.menuCode, opts))
|
||||
return BX_MENU_CATALOG.filter(
|
||||
(e) => !e.hidden && e.phase <= phase && canAccess(e.menuCode, opts),
|
||||
)
|
||||
}
|
||||
|
||||
export function entryByPath(path: string): BxMenuEntry | undefined {
|
||||
|
||||
Reference in new issue
Block a user