mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
补 P2 注释说明 normal 权限反直觉是有意保留 #3395
在 getAgentTemplates 上方加 2 行注释,说明单独 normal 权限是为保持原行为契约(普通用户也能查可用模板),与类级 superAdmin 故意分离;非疏忽。无逻辑变更。
This commit is contained in:
parent
7341070d89
commit
e49b80fe2e
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ public class AgentTemplateController {
|
||||||
|
|
||||||
private final AgentTemplateService agentTemplateService;
|
private final AgentTemplateService agentTemplateService;
|
||||||
|
|
||||||
|
// 单独用 normal 权限(而非类级 superAdmin)是有意保留:
|
||||||
|
// 普通用户也需查询可用模板,与 /page 的管理入口分离,保持原行为契约。
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Operation(summary = "智能体模板列表")
|
@Operation(summary = "智能体模板列表")
|
||||||
@RequiresPermissions("sys:role:normal")
|
@RequiresPermissions("sys:role:normal")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue