source/Application/Component/Widget/ArticleDetails.php
public function canRate()
    {
        if ($this->_blCanRate === null) {
            $this->_blCanRate = false;

            if ($this->ratingIsActive() && $oUser = $this->getUser()) {
                $oRating = oxNew(\OxidEsales\Eshop\Application\Model\Rating::class);
                $this->_blCanRate = $oRating->allowRating($oUser->getId(), 'oxarticle', $this->getProduct()->getId());
            }
        }

        return $this->_blCanRate;
    }
public function canRate()
    {
        if ($this->_blCanRate === null) {
            $this->_blCanRate = false;

            if ($this->ratingIsActive() && $oUser = $this->getUser()) {
                $oRating = oxNew(\OxidEsales\Eshop\Application\Model\Rating::class);
                $this->_blCanRate = $oRating->allowRating($oUser->getId(), 'oxarticle', $this->getProduct()->getId());
            }
        }

        return $this->_blCanRate;
    }
public function canRate ( ) { if ( $ this -> _blCanRate === null ) { $ this -> _blCanRate = false ; if ( $ this -> ratingIsActive ( ) && $ oUser = $ this -> getUser ( ) ) { $ oRating = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Rating :: class ) ; $ this -> _blCanRate = $ oRating -> allowRating ( $ oUser -> getId ( ) , 'oxarticle' , $ this -> getProduct ( ) -> getId ( ) ) ; } } return $ this -> _blCanRate ; }
Checks if rating functionality is on and allowed to user.

@return bool
Checks if rating functionality is on and allowed to user .