Log in
Helper

SalesEntityCommentValidator

Magento\Sales\Helper\SalesEntityCommentValidator

What it does

This helper validates whether a user has permission to edit comments on sales entities like credit memos, invoices, and shipments.

Developers use this class to enforce that only the original comment author (matching both user ID and user type) can modify their own comments, preventing unauthorized edits by other users.

Public Methods

  • isEditCommentAllowed()