Log in
Model

Authorization

Magento\Catalog\Model\Category\Authorization

What it does

This class enforces authorization rules when saving categories, specifically preventing unauthorized users from modifying design-related attributes like custom layouts and themes.

Developers use this to ensure only users with 'Magento_Catalog::edit_category_design' permission can change a category's appearance settings, throwing an AuthorizationException if unauthorized changes are detected.

Public Methods

  • authorizeSavingOf()