• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/commonsendercomponent.php
  • Класс: Bitrix\Sender\Internals\CommonSenderComponent
  • Вызов: CommonSenderComponent::canEdit
protected function canEdit()
{
	if(is_null(static::getEditAction()))
	{
		return;
	}

	try
	{
		$this->arParams['CAN_EDIT'] = $this->arParams['CAN_EDIT']
			??
			$this->getAccessController()->check(static::getEditAction());
	}
	catch (UnknownActionException $e)
	{
		$this->errors->setError(new Error(Loc::getMessage('SENDER_WRONG_PERMISSION')));
		exit;
	}
}