Метод getAccessError

private

Сигнатура метода

private function getAccessError(int $templateId, ?int $userId): ?Error

Возвращает: ?Error

Описание

A missing template and a foreign one are indistinguishable from the outside: both answer ACCESS_DENIED. The journal is a surface of the node editor, so a system template and a non-Nodes one are refused the same way: they live outside the template ACL and never read the draft a restore writes.

Параметры

2
Имя Тип По умолчанию Флаги
$templateId int —
—
$userId ?int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Api/Service/WorkflowTemplateHistoryService.php
Расположение метода в файле
Строки 717–733

Исходный код

PHP