Dolibarr versions before 23.0.4 contain an authorization flaw in the REST API document deletion functionality. The API incorrectly checks 'read' permission instead of 'write' permission when processing document deletion requests. This allows authenticated users with only read permissions on certain modules to delete documents such as third-party files, invoices, orders, proposals, project files, and generated PDFs without proper authorization. The issue was fixed starting from version 23.0.4 by correcting the permission check to require 'write' access.