_aContentInfo) || !is_array($this->_aContentInfo)) return false; $sCheckFuncName = ''; switch ($a['name']) { case 'delete': case 'delete-with-content': if($this->_oModule->checkMyself($this->_iContentId)) return false; $oProfile = $this->_oModule->getProfileObject(($this->_iContentId)); if (!$this->_oModule->isAllowDeleteOrDisable(bx_get_logged_profile_id(), $oProfile->id())) return false; $sCheckFuncName = 'checkAllowedDelete'; break; } if(!$sCheckFuncName || !method_exists($this->_oModule, $sCheckFuncName)) return true; return $this->_oModule->{$sCheckFuncName}($this->_aContentInfo) === CHECK_ACTION_RESULT_ALLOWED; } } /** @} */