Merge branch 'feature/RM-5844_DocumentNotVisibleAfterDeclaringAsRecord_sm' into 'master'

RM-5844 Fix permission error.

See merge request !672
This commit is contained in:
Roxana Lucanu
2017-11-13 08:36:30 +00:00

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());
});
}
/**