mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-10 22:25:39 +00:00
bfbcd0a885
First part of GDPR support (#244): the right to erasure and the right to access. - DELETE /api/v1/contacts/{id} permanently deletes a contact or visitor. Conversations, messages, notes, and participants go with it via DB cascades. The avatar file is removed too. - GET /api/v1/contacts/{id}/export downloads a JSON file with everything stored about the contact: profile, custom attributes, and all conversations with their messages. Private notes stay internal. - Both actions are gated by new permissions (contacts:delete, contacts:export), granted to Admin in migration v2.6.0, and recorded in the activity log with actor and IP. - Contact page gets Export data and Delete contact buttons, with a confirm dialog for delete. - The unlinked media cleaner now also removes attachment files whose message no longer exists. Before this, deleting a conversation left its attachments on disk forever.