fix(perm): access-check before bot-existence (no 403/404 leak); label permissions audit action

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.8 committed 2026-05-30 14:12:04 +08:00
1 parent 1ca1ca9d0c
commit 907a6651f5
2 files changed
+8 -2

No files matched your search

+1
View File
@@ -1326,6 +1326,7 @@ function describeAction(e: AuditEntry): string {
case 'user.password_reset': return `重置 ${target} 的密码`;
case 'user.password_changed': return `修改自己的密码`;
case 'user.role_changed': return `变更 ${target} 的角色`;
case 'user.permissions_changed': return `权限变更 → ${target}`;
default: return `${e.action} → ${target}`;
}
}