protected function can($type)
    {
        if (!array_key_exists($type, $this->_canTypes)) {
            $this->_canTypes[$type] = Yii::$app->auth->matchApi(Yii::$app->adminuser->getId(), $this->config->apiEndpoint, $type);
        }
        
        return $this->_canTypes[$type];
    }