Merged 5.2.N-AUDIT-API (5.2.2) to 5.2.N (5.2.2)

137927 eknizat: REPO-1298 Enable/Disable Application Auditing - Changes following code review


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137972 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2017-07-12 12:11:02 +00:00
parent 131985f84d
commit 97299a3616
3 changed files with 7 additions and 7 deletions

View File

@@ -381,11 +381,11 @@ public class AuditImpl implements Audit
// Enable/Disable audit application
if (auditApp.getIsEnabled() && !auditApplication.isEnabled())
{
auditService.enableAudit(auditApplication.getName(), auditApplication.getKey());
auditService.enableAudit(auditApplication.getName(), null);
}
else if (!auditApp.getIsEnabled() && auditApplication.isEnabled())
{
auditService.disableAudit(auditApplication.getName(), auditApplication.getKey());
auditService.disableAudit(auditApplication.getName(), null);
}
return new AuditApp(auditApplication.getKey().substring(1), auditApplication.getName(), auditApp.getIsEnabled());