Documentation

canUserDoOperations

boolean public static
\Bitrix\Sale\StatusBase::canUserDoOperations(
 string|integer $userId,
 string $fromStatus,
 array $operations
);

Method checks if individual user can perform specific operations.. Static method.

Parameters

ParameterDescriptionVersion
$userIdUser ID.
$fromStatusCurrent status.
$operationsList of operations. Array type: array('update', 'cancel').

Exceptions

Example



© «Bitrix24», 2001-2024
Up