Merged V2.2 to V2.3

114786: RM-2391 : The Audit Log GET requests have to verify first which user is logged in and to which data it has access.
      - Implemented final fix and added a unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@114905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alexandru Balmus
2015-10-21 13:45:08 +00:00
parent b963fb6175
commit 16cc24bf0c
2 changed files with 50 additions and 1 deletions

View File

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