Language: TypeScript. The pull request has one bug. You get three tries to find the line, then a short debrief.
Access rights moved from the token to the database, so the check became asynchronous. This PR updates the permission check for deleting documents.
Codetrap needs JavaScript: the code review happens in your browser.