categoryScopeAccess.ts 481 Bytes
import { canMutateAccountManagementStructure } from "./accountManagementAccess";

/**
 * 表单中 Company / Region / Location 级联:
 * 平台系统管理员需手选公司;其它角色仅选区域与门店(公司由账号绑定自动带入)。
 */
export function isSystemAdminForCategoryScope(params: {
  roleCodes?: string[] | null;
  permissionCodes?: string[] | null;
  userName?: string | null;
}): boolean {
  return canMutateAccountManagementStructure(params);
}