Commit 71f0dec8 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: do not retrieve documents not viewable by user

parent 8cd699bc
Pipeline #38195 failed with stage
in 0 seconds
......@@ -47,7 +47,7 @@ if related:
else:
search_method = getattr(relation, 'get%sList' % getter_base_name)
related_list = search_method(portal_type = portal_type)
related_list = search_method(portal_type = portal_type, checked_permission='View')
relation_found = 0
if len(related_list) == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment