feat: 恢复服务监控菜单入口
This commit is contained in:
@@ -29,6 +29,12 @@ export const isGroupAllowed = (groups, userGroup) => {
|
||||
return allowedGroups.includes(getEffectiveUserGroup(userGroup));
|
||||
};
|
||||
|
||||
export const isSidebarModuleVisible = (config, key, userGroup) =>
|
||||
config?.enabled !== false &&
|
||||
config?.[key] !== false &&
|
||||
isGroupAllowed(config?.groups, userGroup) &&
|
||||
isGroupAllowed(config?.moduleGroups?.[key], userGroup);
|
||||
|
||||
export const isHeaderActionButtonVisible = (config, key, userGroup) => {
|
||||
let buttons = config;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user