• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/document.php
  • Класс: CBPDocument
  • Вызов: CBPDocument::canOperate
static function canOperate($operation, $userId, $arGroups, $arStates)
{
	$operation = trim($operation);
	if ($operation == '')
		throw new Exception("operation");

	$operations = self::GetAllowableOperations($userId, $arGroups, $arStates);
	if ($operations === null)
		return true;

	return in_array($operation, $operations);
}