Documentation

CanOperate

boolean
public static function CBPDocument::CanOperate(
 string operation,
 integer userId,
 array arGroups,
 array arStates
);

This method verifies, whether the specified user can perform the indicated operation, if the document has the indicated statuses.

Note:This method receives an array of configuration parameters and generates scripts, required to show file dialog. Static method.

Method parameters

ParameterDescription
operationOperation code
userIdUser ID
arGroupsArray of user groups
arStatesArray of document workflow statuses

Returned value

If there are no finite state machine type workflows, returns "true". If user cannot complete an operation, returns "false". Otherwise, returns "true".



© «Bitrix24», 2001-2024
Up