refactor(core): finalize user-centric identity and policy cleanup

Unify auth and chat identity semantics around user_id, enforce personal-bot owner-only authorization, and remove legacy compatibility branches in integration tests.
This commit is contained in:
BBQ
2026-02-11 15:42:21 +08:00
parent 06e8619a37
commit 02b33c8e85
27 changed files with 246 additions and 602 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ func (h *SettingsHandler) Delete(c echo.Context) error {
}
func (h *SettingsHandler) requireChannelIdentityID(c echo.Context) (string, error) {
channelIdentityID, err := auth.ChannelIdentityIDFromContext(c)
channelIdentityID, err := auth.UserIDFromContext(c)
if err != nil {
return "", err
}