/** * Only collaborators can view convo */ public function checkAllowedView($aDataEntry, $isPerformAction = false) { if (CHECK_ACTION_RESULT_ALLOWED !== ($sMsg = parent::checkAllowedView($aDataEntry, $isPerformAction))) { return $sMsg; } return $this->isCollaborator($aDataEntry, bx_get_logged_profile_id()) ? CHECK_ACTION_RESULT_ALLOWED : _t('_sys_txt_access_denied'); }
function __construct(&$aModule) { parent::__construct($aModule); }
/** * Only collaborators can view convo */ public function checkAllowedView($aDataEntry, $isPerformAction = false) { if (CHECK_ACTION_RESULT_ALLOWED !== ($sMsg = parent::checkAllowedView($aDataEntry, $isPerformAction))) { return $sMsg; } $aCollaborators = $this->_oDb->getCollaborators($aDataEntry[$this->_oConfig->CNF['FIELD_ID']]); return isset($aCollaborators[bx_get_logged_profile_id()]) ? CHECK_ACTION_RESULT_ALLOWED : _t('_sys_txt_access_denied'); }
protected function _buildRssParams($sMode, $aArgs) { if ($aParams = parent::_buildRssParams($sMode, $aArgs)) { return $aParams; } $sMode = bx_process_input($sMode); switch ($sMode) { case 'album': $aParams = array('album_id' => isset($aArgs[0]) ? (int) $aArgs[0] : ''); break; } return $aParams; }