src/ngrest/render/RenderCrud.php
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];
    }
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];
    }
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 ] ; }
Checks whether a given type can or can not.

@param string $type
@return boolean
Checks whether a given type can or can not .