Documentation

Comment action access check

$comment = \CTaskCommentItem(\CTaskItem $task, $commentId);
if($comment->isActionAllowed(\CTaskCommentItem::ACTION_COMMENT_ADD))
{
// add comment access granted
}

Three access permissions are included in this check:


\CTaskCommentItem::ACTION_COMMENT_ADD;
\CTaskCommentItem::ACTION_COMMENT_MODIFY;
\CTaskCommentItem::ACTION_COMMENT_REMOVE;


© «Bitrix24», 2001-2024