Метод canManageLaunchedTemplate
Сигнатура метода
public function canManageLaunchedTemplate(int $templateId, int $userId, bool $isUserAdmin, bool $requireStarted = false): bool
Возвращает:
bool
Описание
Single source of truth ownership predicate for launched AI-agent templates. Mirrors the grid/delete criterion: launched copy (TYPE=Nodes, SYSTEM_CODE IS NULL), current user is the owner (ACTIVATED_BY) or an admin, optionally already started.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$userId
|
int
|
—
|
—
|
$isUserAdmin
|
bool
|
—
|
—
|
$requireStarted
|
bool
|
false
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Repository/WorkflowTemplate/AiAgentRepository.php
Расположение метода в файле
Строки
64–95