Log in
Model

Authorization

Magento\Catalog\Model\Product\Authorization

What it does

This class provides authorization checks for product save operations, specifically protecting design-related attributes (custom layouts, design themes, etc.) from unauthorized modifications.

Developers use this class when they need to ensure users have the 'Magento_Catalog::edit_product_design' permission before allowing changes to product design attributes like custom_design, page_layout, or custom_layout_update.

Public Methods

  • authorizeSavingOf()