• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/security/sectionright.php
  • Класс: BitrixListsSecuritySectionRight
  • Вызов: SectionRight::canRead
public function canRead()
{
	if(
		$this->listsPermission < CListPermissions::CAN_WRITE &&
		!CIBlockSectionRights::userHasRightTo(
			$this->rightParam->getIblockId(), $this->rightParam->getEntityId(), "section_read")
	)
	{
		$this->errorCollection->setError(new Error("Access denied", self::ACCESS_DENIED));
		return false;
	}
	return true;
}