WIP: erp5_hal_json_style: Check if access is restricted prior traversing documents
Check if access is restricted prior traversing documents -> It fixes the 404 error appearing when a user tried to access an action on a document while not being logged in. It now redirect to login form