• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/type.php
  • Класс: Bitrix\Crm\Controller\Type
  • Вызов: Type::onBeforeAction
public function onBeforeAction(Event $event): ?EventResult
		{
			$userPermissions = Container::getInstance()->getUserPermissions();
			if (!$userPermissions->canWriteConfig())
			{
				$this->addError(new Error(Loc::getMessage('CRM_COMMON_ERROR_ACCESS_DENIED')));
			}

			return new EventResult(
				$this->errorCollection->isEmpty() ? EventResult::SUCCESS : EventResult::ERROR,
				null,
				null,
				$this
			);
		}