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

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

@param string $route
@return bool Whether the current user can request the provided route.
Perform a can route auth request match for the logged in user if user is logged in returns false otherwhise .