Implement audit log #10

Merged
wbouzour merged 2 commits from feat/audit_log into main 2026-11-04 19:23:23 +01:00
Collaborator

Implements #7
For now, it logs changes to people, users, roles and payments. It can easily be extended to other models later.

Also:

  • Fixes a bug when purging a person with group membership
  • Extract a pagination helper for the templates
  • Reuse field value and role binding rows instead of re-creating them
  • Answer 404 when deleting a missing user, role or payment
  • Don't blank Name anymore, only email, and explain why in the code
Implements #7 For now, it logs changes to people, users, roles and payments. It can easily be extended to other models later. Also: - Fixes a bug when purging a person with group membership - Extract a pagination helper for the templates - Reuse field value and role binding rows instead of re-creating them - Answer 404 when deleting a missing user, role or payment - Don't blank Name anymore, only email, and explain why in the code
yhrel self-assigned this 2026-11-01 20:26:38 +01:00
Add shared purge helper
Track changes to people, users, roles and payments
Add a GORM global callback to log things with their author
Add admin audit page
Show latest changes on edit pages to admins
Reuse field value and role binding rows instead of re-creating them
Delete purged rows one by one so each delete is logged
Answer 404 when deleting a missing user, role or payment
Update README with audit rules
Revert bootstrap danger color for better contrast
Don't blank Name anymore
Extract pagination helper
Owner

Really nice, thank you very much

Really nice, thank you very much
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pop-vaud/camarades!10
No description provided.