Authorization
Magento\Customer\Model\Customer\Authorization
What it does
This class verifies if a logged-in customer is authorized to access resources in the current store.
Developers use this when implementing customer-specific access control, particularly in multi-store environments where customer accounts may be shared across specific stores.
It checks if the customer has permission to access resources in the currently active store based on their shared store configuration.
Public Methods
- isAllowed()