Documentation

task.commentitem.isactionallowed

Checks if the action is permitted.

Method Parameters

ParameterDescription
TASKID Task identifier. Required parameter.
ITEMID Comment identifier. Required parameter.
ACTIONID Identifier of the action to be checked:
  • 1 - ACTION_COMMENT_ADD;
  • 2 - ACTION_COMMENT_MODIFY;
  • 3 - ACTION_COMMENT_REMOVE.
Required parameter.

Example

// Let us check the comment with ID=1205 to make sure the delete action is permitted:

BX24.callMethod(
   'task.commentitem.isactionallowed',
   [13, 1205, 3],
   function(result){
      console.info(result.data());
      console.log(result);
   }
);


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2017, «Bitrix Inc.», 2017