Stages::completeTask

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Stages
  4. completeTask
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/dispatcher/publicaction/task/stages.php
  • Класс: BitrixTasksDispatcherPublicActionTaskStages
  • Вызов: Stages::completeTask
private function completeTask(int $taskId)
{
	$task = CTaskItem::getInstance($taskId, UtilUser::getId());
	if (
		$task->checkAccess(ActionDictionary::ACTION_TASK_COMPLETE)
		|| $task->checkAccess(ActionDictionary::ACTION_TASK_APPROVE)
	)
	{
		$task->complete();
	}
}

Добавить комментарий