_oModule = BxDolModule::getInstance($this->_sModule); } public function isPostAllowed ($isPerformAction = false) { $bCheckResult = $this->_isPostAllowed ($isPerformAction); bx_alert($this->_sModule, 'comment_post_allowed', $this->getId(), false, array('check_result' => &$bCheckResult)); return $bCheckResult; } protected function _isPostAllowed ($isPerformAction = false) { $CNF = &$this->_oModule->_oConfig->CNF; $oProfileOwner = BxDolProfile::getInstanceByContentAndType($this->getId(), $this->_sModule); if($oProfileOwner !== false && $oProfileOwner->checkAllowedPostInProfile() !== CHECK_ACTION_RESULT_ALLOWED) return false; return parent::isPostAllowed($isPerformAction); } } /** @} */