feat(role): 根据role判断用户的权限

This commit is contained in:
sophie committed 2026-09-18 09:21:04 +08:00
1 parent 80d78130f8
commit a24bd94d43
93 files changed
+4472 -387

No files matched your search

@@ -168,7 +168,7 @@ XFA:`can_auto_create=false` 时不得显示 automating;不放宽冻结门禁
## 5. profile_match 权限
- 判定:本轮暂 `user.role == 'admin'`(权限封装,避免散落前端)
- 判定:本轮 `user.is_platform_admin()`(权限封装,避免散落前端)
- 普通用户 Case API:四态 `matched|unmatched|ambiguous|unknown`,无候选分 / Profile ID / 原因链
- 管理员:完整模板审计对象 + 用户态 `status` 映射
- 禁止仅靠前端 `v-if` 隐藏敏感字段