mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge branch 'feature/RM-5844_DocumentNotVisibleAfterDeclaringAsRecord_sm' into 'master'
RM-5844 Fix permission error. See merge request !672
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)
|
private String getDisplayPath(final NodeRef nodeRef)
|
||||||
{
|
{
|
||||||
return AuthenticationUtil.runAs(new RunAsWork<String>()
|
return AuthenticationUtil.runAsSystem(new RunAsWork<String>()
|
||||||
{
|
{
|
||||||
public String doWork() throws Exception
|
public String doWork() throws Exception
|
||||||
{
|
{
|
||||||
return PathUtil.getDisplayPath(nodeService.getPath(nodeRef), true);
|
return PathUtil.getDisplayPath(nodeService.getPath(nodeRef), true);
|
||||||
}
|
}
|
||||||
}, AuthenticationUtil.getAdminUserName());
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user