Log in
Model

Authorization

Magento\Catalog\Model\Category\Authorization

What it does

This class provides authorization checks for category save operations, specifically protecting design-related attributes from unauthorized modifications.

Developers use this class to ensure that only users with 'Magento_Catalog::edit_category_design' permission can modify design attributes like custom layout updates, page layouts, or theme settings when saving categories.

It compares old and new values of design attributes and throws an authorization exception if changes are detected without proper permissions.

Public Methods

  • authorizeSavingOf()