check if the node is rm specific;

This commit is contained in:
Rodica Sutu
2018-04-23 16:38:24 +03:00
parent 5781d71c8f
commit 9b28e44fa1

View File

@@ -981,9 +981,10 @@ public class RecordsManagementAuditServiceImpl extends AbstractLifecycleBean
return true;
}
if(nodeRef != null && nodeService.exists(nodeRef) &&
!AccessStatus.ALLOWED.equals(
capabilityService.getCapabilityAccessState(nodeRef, ACCESS_AUDIT_CAPABILITY)))
if (nodeRef != null && nodeService.exists(nodeRef) &&
filePlanService.isFilePlanComponent(nodeRef) &&
!AccessStatus.ALLOWED.equals(
capabilityService.getCapabilityAccessState(nodeRef, ACCESS_AUDIT_CAPABILITY)))
{
return true;
}