feat: owner 权限码改为返回公司已分配权限而非 company:* 通配

This commit is contained in:
2026-09-10 15:14:24 +08:00
parent b304181022
commit f83a14edc6
4 changed files with 30 additions and 2 deletions
@@ -1,5 +1,6 @@
/** 与 GET /auth/codes 返回的全局通配一致 */
/** 超管通配(GET /auth/codes 对 super 返回 [*]) */
export const PERMISSION_WILDCARD_ALL = '*';
/** 历史公司通配;owner 已改为返回公司实际权限码,保留兼容旧会话缓存 */
export const PERMISSION_WILDCARD_COMPANY = 'company:*';
export type PermissionMatchMode = 'all' | 'any';