Bitrix24\Task\Item::isActionAllowed PHP Method

isActionAllowed() public method

Return true if action is allowed, else returns false.
public isActionAllowed ( $taskId, $actionId ) : array
$taskId integer Task ID.
$actionId integer Validated action ID (see CTaskItem::ACTION_* constants of PHP class CTaskItem).
return array
    public function isActionAllowed($taskId, $actionId)
    {
        $result = $this->client->call('task.item.isactionallowed', array($taskId), array($actionId));
        return $result;
    }