RM-5844 Fix permission error.

This commit is contained in:
Roxana Lucanu-Ghetu
2017-11-09 11:00:26 +02:00
parent 335a23418d
commit 8ffc0268ec

View File

@@ -370,13 +370,13 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
*/
private String getDisplayPath(final NodeRef nodeRef)
{
return AuthenticationUtil.runAs(new RunAsWork<String>()
return AuthenticationUtil.runAsSystem(new RunAsWork<String>()
{
public String doWork() throws Exception
{
return PathUtil.getDisplayPath(nodeService.getPath(nodeRef), true);
}
}, AuthenticationUtil.getAdminUserName());
});
}
/**