Метод canOperate
Сигнатура метода
public static function canOperate($operation, $userId, $arGroups, $arStates)
Описание
Method check can operate user specified operation in specified state. If specified states are not relevant to state machine returns true. If user can`t do operation return false. Else returns true.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$operation
|
—
|
—
|
—
|
$userId
|
—
|
—
|
—
|
$arGroups
|
—
|
—
|
—
|
$arStates
|
—
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/classes/general/document.php
Расположение метода в файле
Строки
329–340