Model

IsAssistanceEnabled

Magento\LoginAsCustomerAssistance\Model\IsAssistanceEnabled

What it does

This class checks whether a specific customer has enabled the 'Login as Customer' assistance feature, which allows store administrators to log in to the customer's account for support purposes.

Developers use this class to verify customer permissions before allowing admin users to impersonate them.

It caches results in a registry to avoid redundant database queries during the same request.

Public Methods

  • execute()