mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-10 01:57:12 +00:00
The AI classifier asked permitted_object_ids for the Document model directly, which judges a version by its own owner and grants. A version whose owner had drifted from its private root's could be offered as similar-document context to a user who cannot see the root. Use permitted_document_ids in both the vector and full-text paths, which authorizes a version by its root. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>