From ecb20f6f773f4e97b026b79a14d056a303c679cb Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - DINUM Date: Sun, 6 Apr 2025 21:20:04 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(backend)=20add=20ancestors=20links=20?= =?UTF-8?q?definitions=20to=20document=20abilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The frontend needs to display inherited link accesses when it displays possible selection options. We need to return this information to the client. --- CHANGELOG.md | 1 + src/backend/core/tests/documents/test_api_documents_trashbin.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d1c7458..5fda37d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to ### Added +- ✨(backend) add ancestors links definitions to document abilities #846 - ✨(backend) include ancestors accesses on document accesses list view # 846 - ✨(backend) add ancestors links reach and role to document API #846 - ✨(frontend) add customization for translations #857 diff --git a/src/backend/core/tests/documents/test_api_documents_trashbin.py b/src/backend/core/tests/documents/test_api_documents_trashbin.py index 9e805397..3a0a5f56 100644 --- a/src/backend/core/tests/documents/test_api_documents_trashbin.py +++ b/src/backend/core/tests/documents/test_api_documents_trashbin.py @@ -74,6 +74,7 @@ def test_api_documents_trashbin_format(): "accesses_view": True, "ai_transform": True, "ai_translate": True, + "ancestors_links_definitions": {}, "attachment_upload": True, "can_edit": True, "children_create": True,