• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/bizprocdocument.php
  • Класс: BizprocDocument
  • Вызов: BizprocDocument::toInternalOperations
static function toInternalOperations($documentType, $permissions)
{
	$permissions = (array) $permissions;
	$tasks = self::getRightsTasks();

	$normalized = array();
	foreach ($permissions as $key => $value)
	{
		if (isset($tasks[$key]))
			$key = $tasks[$key]['ID'];
		$normalized[$key] = $value;
	}

	return $normalized;
}