Log in
Model

Authorization

Magento\Customer\Model\Customer\Authorization

What it does

This class verifies if a logged-in customer has authorization to access resources in the current store.

Developers use this when implementing custom customer-facing features that need to check if the current customer is authorized to perform actions on their own account within the store they're accessing.

It's particularly useful in multi-store setups where customers may be shared across stores.

Public Methods

  • isAllowed()