• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblocksection.php
  • Класс: CAllIBlockSection
  • Вызов: CAllIBlockSection::UserTypeRightsCheck
static function UserTypeRightsCheck($entity_id)
{
	if(preg_match("/^IBLOCK_(d+)_SECTION$/", $entity_id, $match))
	{
		return CIBlock::GetPermission($match[1]);
	}
	else
		return "D";
}