Метод getEntityFilter
Сигнатура метода
public function getEntityFilter(?int $userId, int $permission = PermissionDictionary::BIZPROC_TEMPLATE_EDIT): array
Возвращает:
array
Описание
ORM filter selecting the templates the user effectively has $permission on: - portal admin / scope "all" (-1) => [] (no ID restriction); - small selective scope => ['@ID' => [t1, t2, ...]]; - large selective scope => ['@ID' => ACL subquery]; - empty scope (no role, or 0 selected templates) => FAIL_CLOSED_FILTER (never "all"). For EDIT the scope also unions PUBLISH (publish dominates edit) so list visibility stays in sync with {@see TemplateAccessService::canEdit()}.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
?int
|
—
|
—
|
$permission
|
int
|
PermissionDictionary::BIZPROC_TEMPLATE_EDIT
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Public/Provider/TemplateAccessProvider.php
Расположение метода в файле
Строки
38–64