Fix: exclude version documents from bulk edit "all" (#13791)

This commit is contained in:
shamoon authored and GitHub committed 2026-08-26 14:27:31 +00:00
1 parent 2e7cd14964
commit 7330c4d9cb
2 files changed
+38

No files matched your search

+3
View File
@@ -2795,8 +2795,11 @@ class DocumentSelectionMixin:
for key, value in filters.items()
if key not in _TANTIVY_SEARCH_PARAM_NAMES
}
# Operations are addressed to roots, a caller that wants
# to act on a specific version passes its id explicitly instead
permitted_documents = Document.objects.filter(
id__in=permitted_document_ids(user),
root_document__isnull=True,
)
# orm-filtered docs
filtered_documents = DocumentFilterSet(