From 48931eeae6c5af33a4078e0b1994c4935435aaad Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 14 Mar 2026 14:44:46 +0800 Subject: [PATCH] feat: Only allow querying of one's own conversation. --- .../LINGYUN/Abp/AIManagement/Chats/ConversationAppService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Application/LINGYUN/Abp/AIManagement/Chats/ConversationAppService.cs b/aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Application/LINGYUN/Abp/AIManagement/Chats/ConversationAppService.cs index dc1fc00af..2ecabaa41 100644 --- a/aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Application/LINGYUN/Abp/AIManagement/Chats/ConversationAppService.cs +++ b/aspnet-core/modules/ai/LINGYUN.Abp.AIManagement.Application/LINGYUN/Abp/AIManagement/Chats/ConversationAppService.cs @@ -35,6 +35,7 @@ public class ConversationAppService : var queryable = await base.CreateFilteredQueryAsync(input); return queryable + .Where(x => x.CreatorId == CurrentUser.Id) .WhereIf(!input.Filter.IsNullOrWhiteSpace(), x => x.Name.Contains(input.Filter!)); }