Skip to content

Commit 30e6482

Browse files
sampaccoudPanchoutNathan
authored andcommitted
♻️(backend) simplify roles by returning only the max role
We were returning the list of roles a user has on a document (direct and inherited). Now that we introduced priority on roles, we are able to determine what is the max role and return only this one. This commit also changes the role that is returned for the restricted reach: we now return None because the role is not relevant in this case.
1 parent decc8bd commit 30e6482

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/core/tests/documents/test_api_documents_trashbin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def test_api_documents_trashbin_format():
7474
"accesses_view": True,
7575
"ai_transform": True,
7676
"ai_translate": True,
77-
"ancestors_links_definitions": {},
7877
"attachment_upload": True,
7978
"children_create": True,
8079
"children_list": True,

0 commit comments

Comments
 (0)