• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/bizprocdocument.php
  • Класс: BizprocDocument
  • Вызов: BizprocDocument::getAllowableOperations
static function getAllowableOperations($documentType)
{
	$iblockId = intval(mb_substr($documentType, mb_strlen("iblock_")));
	if ($iblockId <= 0)
		throw new CBPArgumentOutOfRangeException("documentType", $documentType);

	if (CIBlock::getArrayByID($iblockId, "RIGHTS_MODE") === "E")
	{
		$operations = array();
		$tasks = self::getRightsTasks();

		foreach($tasks as $ar)
		{
			$key = empty($ar['LETTER']) ? $ar['ID'] : $ar['LETTER'];
			$operations[$key] = $ar['TITLE'];
		}

		return $operations;
	}
	return parent::getAllowableOperations($documentType);
}