• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/security/sectionright.php
  • Класс: BitrixListsSecuritySectionRight
  • Вызов: SectionRight::canAdd
public function canAdd()
{
	$canAdd = (
		!$this->socnetGroupClosed &&
		(
			($this->listsPermission >= CListPermissions::CAN_WRITE) ||
			CIBlockSectionRights::userHasRightTo(
				$this->rightParam->getIblockId(), $this->rightParam->getEntityId(), "section_section_bind")
		)
	);

	if ($canAdd)
	{
		return true;
	}
	else
	{
		$this->errorCollection->setError(new Error("Access denied", self::ACCESS_DENIED));
		return false;
	}
}