refactor: 菜单栏角色化降噪(role-based-navigation-simplification)
这个提交包含在:
@@ -207,7 +207,7 @@ export function hasBusinessApproverRole(roleCodes: string[] | undefined, permiss
|
||||
}
|
||||
|
||||
export function hasFinanceRole(roleCodes: string[] | undefined, permissionCodes: string[]) {
|
||||
const hasRole = (roleCodes ?? []).some((roleCode) => (FINANCE_ROLE_CODES as readonly string[]).includes(roleCode));
|
||||
const hasRole = (roleCodes ?? []).some((roleCode) => (FINANCE_ROLE_CODES as readonly string[]).includes(roleCode) || roleCode === "admin");
|
||||
return hasRole && hasAnyPermission(permissionCodes, [...FINANCE_PORTAL_PERMISSIONS]);
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户