DanDiplo / Umbraco.AuditLogViewer

An audit and content log table viewer for Umbraco CMS
https://www.diplo.co.uk/blog/web-development/diplo-audit-log-viewer-for-umbraco-10/
16 stars 7 forks source link

'Delete' Function of Media items ascribed to the item creator, not the deleter #4

Closed HistoricEnglandDigitalTeam closed 5 years ago

HistoricEnglandDigitalTeam commented 5 years ago

When a Media Item is deleted, the Audit Log reports the initial delete as "Move Media to Recycle Bin performed by user", correctly ie the audit log records the user who pressed 'delete'.

### But the actual delete action is ascribed to the original creator of the Media Item , rather than to the User who who pressed 'delete'. "Trashed media with Id: 39369 related to original parent media item with Id: 38807"

Note: for documents/pages actions are correctly reported in the Audit Log - where both the Move to recycle Bin and the 'Trashed,,,, " ie the actions are allocated to the same person.

We are using Umbraco 7.13.2 with Diplo Audit Log Viewer v 1.0.4. image

Thanks Fiona

DanDiplo commented 5 years ago

Hi! Apologies for the delay in answering, but I've been on holiday....

Anyway, just so you know, my viewer is only responsible for displaying the audit trail that Umbraco records (in the umbracoLog table in the database). So if the information is inaccurate then that is down to Umbraco not recording the correct information. In your case it seems it stores the wrong User ID when a media file is finally deleted.

I did a little test to confirm this. What I found wa:

I checked the umbracoLogtable and could see that this was what information was stored there. So my viewer is showing the correct information in terms of it is displaying what Umbraco has stored. The issue seems to be down to Umbraco not recording the correct user, which I'm afraid I can't do anything about - but you can report issues here: https://github.com/umbraco/Umbraco-CMS/issues