Метод canConfigure

public

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

public function canConfigure(int $userId): bool

Возвращает: bool

Описание

Whether the user may configure rights at all: the CONFIGURE_RIGHTS toggler or a portal administrator. The single gate source shared by the read side (role list, "all" selectability) and the write side. Overridable seam so unit tests can inject the answer without the ORM.

Параметры

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

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

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

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

Исходный код

PHP