function checkAction() { if (!parent::checkAction()) { return false; } $oMain = $this->getMain(); $aDataEntry = $oMain->_oDb->getEntryById($this->getId()); return $oMain->isAllowedRate($aDataEntry); }
function checkAction() { if (!parent::checkAction()) { return false; } $oMain = $this->getMain(); $aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->getId(), 0, true); return $oMain->isAllowedRate($aEvent); }