| 123456789101112131415161718192021222324252627 |
- <?php defined('BX_DOL') or die('hack attempt');
- /**
- * Copyright (c) UNA, Inc - https://una.io
- * MIT License - https://opensource.org/licenses/MIT
- *
- * @defgroup UnaCore UNA Core
- * @{
- */
- class BxDolCmtsScore extends BxTemplScore
- {
- protected function __construct($sSystem, $iId, $iInit = true, $oTemplate = false)
- {
- parent::__construct($sSystem, $iId, $iInit, $oTemplate);
- }
- protected function _isAllowedVoteByObject($aObject)
- {
- $oCmts = BxDolCmts::getObjectInstanceByUniqId($aObject['id'], true, $this->_oTemplate);
- if(!$oCmts)
- return false;
- return $oCmts->isViewAllowed() === CHECK_ACTION_RESULT_ALLOWED;
- }
- }
- /** @} */
|