• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/rights.php
  • Класс: BitrixLandingRights
  • Вызов: Rights::getAccessTasks
static function getAccessTasks()
{
	static $tasks = [];

	if (empty($tasks))
	{
		$res = CTask::getList(
			['LETTER' => 'ASC'],
			['MODULE_ID' => 'landing']
		);
		while ($row = $res->fetch())
		{
			$row['NAME'] = mb_substr($row['NAME'], 14);
			$tasks[$row['ID']] = $row;
		}
	}

	return $tasks;
}