10-21-2013 06:24 AM
Hello,
We got a strange behaviour in freemarker template.
A document template is write in Freemarker and do the operation document.parent on a nuxeo document even if user has no read right on it
=> Why in freemarker we can't do the operation doc.parent on document user hasn't "read right" on ?
=> Why login as system doesn't change anything ?
Error message:
Failed to get document field: parent
The problematic instruction:
==> local assignment: theDoc=currentDoc.parent
freemarker.template.TemplateModelException: Failed to get document field: parent
Caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege READ is not granted to tutu
Ref: [http://answers.nuxeo.com/questions/6863/document-template-get-all-a-document-path-with-title-and-not-name][1]
Thank you [1]: http://answers.nuxeo.com/questions/6863/document-template-get-all-a-document-path-with-title-and-not...
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.