Two new tickets:write tools, on the same code path as the web UI's comment
edit/delete. The access check, owner-or-admin rule and audit entry moved
out of api/update_comment.php and api/delete_comment.php into
CommentService::updateComment/deleteComment (as add_comment did in #111),
and both endpoints now call it; their responses and status codes are
unchanged apart from extra ticket_id/replies_removed fields.
- edit_comment: replace a comment's text (own comments; admins any).
- delete_comment: delete a comment; replies go with it
(fk_parent_comment ON DELETE CASCADE), so the result and the audit
entry report replies_removed.
- A comment on a ticket the user can't see reads as "Comment N not
found", like a missing one, so restricted tickets stay hidden.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>