$isWebsiteUserImpersonated()

Overview

public any function $isWebsiteUserImpersonated()

Proxy to the isImpersonated() method of Website login service. See Website users and permissioning for a full guide.

Example

if ( $isWebsiteUserLoggedIn() && !$isWebsiteUserImpersonated() ) {
        // do some sensitive action that requires the actual user to be logged in
}