src/base/RestActiveController.php
public function checkEndpointAccess()
    {
        UserOnline::refreshUser($this->userAuthClass()->identity, $this->id);
        
        if (!Yii::$app->auth->matchApi($this->userAuthClass()->identity->id, $this->id, false)) {
            throw new ForbiddenHttpException('Unable to access this action due to insufficient permissions.');
        }
    }
public function checkEndpointAccess()
    {
        UserOnline::refreshUser($this->userAuthClass()->identity, $this->id);
        
        if (!Yii::$app->auth->matchApi($this->userAuthClass()->identity->id, $this->id, false)) {
            throw new ForbiddenHttpException('Unable to access this action due to insufficient permissions.');
        }
    }
public function checkEndpointAccess ( ) { UserOnline :: refreshUser ( $ this -> userAuthClass ( ) -> identity , $ this -> id ) ; if ( ! Yii :: $ app -> auth -> matchApi ( $ this -> userAuthClass ( ) -> identity -> id , $ this -> id , false ) ) { throw new ForbiddenHttpException ( 'Unable to access this action due to insufficient permissions.' ) ; } }
Checks if the current api endpoint exists in the list of accessables APIs.

@throws ForbiddenHttpException
@since 1.1.0
Checks if the current api endpoint exists in the list of accessables APIs .