Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
 /**
  * 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');
 }