Helper
SalesEntityCommentValidator
Magento\Sales\Helper\SalesEntityCommentValidator
What it does
This helper validates whether a user is allowed to edit comments on sales entities (credit memos, invoices, and shipments).
Developers use this class to ensure users can only edit their own comments by comparing the comment's user ID and type against the current user's context, preventing unauthorized comment modifications.
Public Methods
- isEditCommentAllowed()