Get Unfiled Container with system user

This commit is contained in:
cagache
2019-05-21 09:38:53 +03:00
parent 189f250ec7
commit a924d2efb4

View File

@@ -1037,14 +1037,7 @@ public class RecordServiceImpl extends BaseBehaviourBean
if (newRecordContainer == null)
{
// get the new record container for the file plan
newRecordContainer = AuthenticationUtil.runAs(new RunAsWork<NodeRef>()
{
@Override
public NodeRef doWork()
{
return filePlanService.getUnfiledContainer(checkedFilePlan);
}
}, AuthenticationUtil.getAdminUserName());
newRecordContainer = AuthenticationUtil.runAsSystem(() -> filePlanService.getUnfiledContainer(checkedFilePlan));
if (newRecordContainer == null)
{