mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5844 Fix permission error.
This commit is contained in:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user