(backend) add API endpoint to list a document's children

This endpoint is nested under a document's detail endpoint.
This commit is contained in:
Samuel Paccoud - DINUM
2024-12-17 19:03:45 +01:00
committed by Anthony LC
parent 4333b46901
commit 7ff4bc457f
5 changed files with 560 additions and 0 deletions

View File

@@ -584,6 +584,7 @@ class Document(MP_Node, BaseModel):
"ai_transform": can_update,
"ai_translate": can_update,
"attachment_upload": can_update,
"children": can_get,
"collaboration_auth": can_get,
"destroy": RoleChoices.OWNER in roles,
"favorite": can_get and user.is_authenticated,