<?php
// CBPDocument :: CanOperate()
// /dist/bitrix/modules/bizproc/classes/general/document.php:290
public static function CanOperate($operation, $userId, $arGroups, $arStates)
{
$operation = trim($operation);
if (strlen($operation) <= 0)
throw new Exception("operation");
$operations = self::GetAllowableOperations($userId, $arGroups, $arStates);
if ($operations === null)
return true;
return in_array($operation, $operations);
}