Метод checkLaunchAccess
Сигнатура метода
public function checkLaunchAccess(?int $launchedTemplateId = null): Result
Возвращает:
Result
Описание
Pre-check whether the current user may launch a system AI-agent before the setup wizard opens. A null id (no copy yet) always passes (first launch). For an existing copy the launch is allowed only to its owner or an admin (via canManageLaunchedTemplate), otherwise a Result with the stable LAUNCH_ACCESS_DENIED_CODE is returned. User id and admin flag are resolved server-side (CBPWorkflowTemplateUser); the error exposes no identifiers in its message or customData.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$launchedTemplateId
|
?int
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Public/Provider/WorkflowTemplate/AiAgentProvider.php
Расположение метода в файле
Строки
32–56