Entity::processBeforeAction

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Entity
  4. processBeforeAction
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/agentcontract/entity.php
  • Класс: BitrixCatalogControllerAgentContractEntity
  • Вызов: Entity::processBeforeAction
protected function processBeforeAction(MainEngineAction $action)
{
	if (!Catalogv2AgentContractAccessController::check())
	{
		$this->addError(
			new MainError(
				MainLocalizationLoc::getMessage('CATALOG_CONTROLLER_AGENT_CONTRACT_ENTITY_PERMISSION_DENIED')
			)
		);
		return false;
	}

	return parent::processBeforeAction($action);
}

Добавить комментарий