As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hello,
I tested this code on Nuxeo 5.6
http://doc.nuxeo.com/display/Studio/Move+a+Document+with+security+constraints
Document.SetACL :
It's impossible to use MVEL language on attribute "user" even if there is a MVEL selector near this attribute.
Endeed, i tested it and saw that every MVEL code is not interpretade by the server.
This is a big probleme because set.acl became unusefull. It's impossible to use it only with "constantes values".
Example: @{Context.principal.name} or @{CurrentUser.principal.name} or @{Context["thisuser"]}
Do you have the same problem ?
Do you know where to find the java code of this operation? thanks
ps - modification: I translated my question in English + completed with the example
ps, le code existant de set.acl: http://hg.nuxeo.org/nuxeo/nuxeo-features/diff/0cc0116fde8a/nuxeo-automation/nuxeo-automation-core/src/main/java/org/nuxeo/ecm/automation/core/operations/document/SetDocumentACE.java
What exact parameters are you using in your operation? MVEL usage is generic in operations, it should work everywhere.
thank you for your answer.
I solved this problem with this explanation:/> A) used @{CurrentUser.name} (thanks nuxeo team help) for saving current user login /> acl are visibled on "inheritance right" view in the interface
Context: />
User lambda has no permission to use set.acl operation./> ==> Need to LoginAs temporary as Administrator./> ==> but save the "login" of the currentUser, first./>
Need 2 rights:
Hope it helps
Milonette