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)
|
if (newRecordContainer == null)
|
||||||
{
|
{
|
||||||
// get the new record container for the file plan
|
// get the new record container for the file plan
|
||||||
newRecordContainer = AuthenticationUtil.runAs(new RunAsWork<NodeRef>()
|
newRecordContainer = AuthenticationUtil.runAsSystem(() -> filePlanService.getUnfiledContainer(checkedFilePlan));
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public NodeRef doWork()
|
|
||||||
{
|
|
||||||
return filePlanService.getUnfiledContainer(checkedFilePlan);
|
|
||||||
}
|
|
||||||
}, AuthenticationUtil.getAdminUserName());
|
|
||||||
|
|
||||||
if (newRecordContainer == null)
|
if (newRecordContainer == null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user