mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-5839 Fixed permission denied error and added integration test for the fix.
This commit is contained in:
@@ -283,7 +283,7 @@ public class RecordAspect extends AbstractDisposableItem
|
||||
isFilePlanComponent(oldChildAssocRef.getParentRef()))
|
||||
{
|
||||
final NodeRef record = newChildAssocRef.getChildRef();
|
||||
authenticationUtil.runAs(new RunAsWork<Object>()
|
||||
authenticationUtil.runAsSystem(new RunAsWork<Object>()
|
||||
{
|
||||
public Object doWork()
|
||||
{
|
||||
@@ -299,7 +299,7 @@ public class RecordAspect extends AbstractDisposableItem
|
||||
|
||||
return null;
|
||||
}
|
||||
}, authenticationUtil.getAdminUserName());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user