Example #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');
 }
Example #2
0
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
 }
Example #3
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');
 }
Example #4
0
 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;
 }