src/components/AdminUser.php
public function canApi($apiEndpoint, $typeVerification = false)
    {
        return !$this->isGuest && Yii::$app->auth->matchApi($this->getId(), $apiEndpoint, $typeVerification);
    }
public function canApi($apiEndpoint, $typeVerification = false)
    {
        return !$this->isGuest && Yii::$app->auth->matchApi($this->getId(), $apiEndpoint, $typeVerification);
    }
public function canApi ( $ apiEndpoint , $ typeVerification = false ) { return ! $ this -> isGuest && Yii :: $ app -> auth -> matchApi ( $ this -> getId ( ) , $ apiEndpoint , $ typeVerification ) ; }
Perform a can api match request for the logged in user if user is logged in, returns false otherwhise.

See the {{luya\admin\components\Auth::matchApi}} for details.

@param string $apiEndpoint
@param string $typeVerification
@return boolean Whether the current user can request the provided api endpoint.
Perform a can api match request for the logged in user if user is logged in returns false otherwhise .