SetAssistance
Magento\LoginAsCustomerAssistance\Model\SetAssistance
What it does
This class manages the 'Login as Customer' assistance permission for individual customers in Magento 2.
Developers use this to enable or disable whether admin users can log in as a specific customer, typically when implementing customer support features or custom admin interfaces that need to control this security setting.
It handles both saving and deleting the assistance permission while maintaining an internal cache to avoid redundant database operations.
Public Methods
- execute()