MNT-22138: Document Filed to RM File Plan under categories with cut off retention schedule no longer accessible to non admin users in collab site

- Fixed access denied issue by running code as system.
This commit is contained in:
Raluca Munteanu
2021-04-01 19:39:36 +03:00
parent 3f25704425
commit 14ab9ee541

View File

@@ -510,10 +510,13 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
// Set the indicators array
setIndicators(rmNodeValues, nodeRef);
AuthenticationUtil.runAsSystem(new RunAsWork<Void>() {
@Override
public Void doWork() {
// Set the actions array
setActions(rmNodeValues, nodeRef);
//Add details of the next incomplete event in the disposition schedule
if (dispositionService.getNextDispositionAction(nodeRef) != null)
{
@@ -529,6 +532,9 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
}
}
}
return null;
}
});
return rmNodeValues;
}