mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Get Unfiled Container with system user
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user