Repository navigation
fix: get all memory in team with permission=me - #16593
Conversation
📝 WalkthroughWalkthroughAdds a ChangesMemory Access Filtering
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant MemoryService
participant MemoryDAO
participant Database
Client->>MemoryService: ListMemories(userID, tenantIDs...)
alt tenantIDs empty
MemoryService->>MemoryService: build tenantIDs = [userID, ...userTenants]
end
MemoryService->>MemoryDAO: GetByFilter(userID, tenantIDs, ...)
alt userID non-empty
MemoryDAO->>Database: query with (tenant_id = ? OR permissions = 'team')
else
MemoryDAO->>Database: query without access predicate
end
Database-->>MemoryDAO: filtered memory rows
MemoryDAO-->>MemoryService: memories, count
MemoryService-->>Client: memory list
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
### Summary As title:
### Summary As title:
Summary
As title:
bug:

fixed:
