mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
Several high-traffic endpoints (views.create, views.list, comments.list, relationships.list, subscriptions.list/info, events.list, pins.info, documents.insights/users/documents) load a document purely to run a policy check, yet fetched its full content, text and state columns on every request. The read policy only inspects ownership, membership and collection fields, so pass includeContent: false to use the existing withoutContent scope. comments.list keeps the body only when anchor text is requested, which is the sole consumer of it. Claude-Session: https://claude.ai/code/session_017swPbmq4SwtkE15fcRhdcU Co-authored-by: Claude <noreply@anthropic.com>