01-16-2013 11:36 AM
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/sr...
01-18-2013 10:42 AM
What exact parameters are you using in your operation? MVEL usage is generic in operations, it should work everywhere.
01-18-2013 11:24 AM
thank you for your answer.
02-13-2013 09:26 AM
Hello,
I solved this problem with this explanation:
/>
A) used @{CurrentUser.name} (thanks nuxeo team help) for saving current user login
/>
B) 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
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.