Project::canModifyTask

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Project
  4. canModifyTask
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/processor/task/scheduler/relationmanager/project.php
  • Класс: BitrixTasksProcessorTaskSchedulerRelationManagerProject
  • Вызов: Project::canModifyTask
private function canModifyTask($task)
{
	// no deal with tasks with no created date, skip the subtree
	if((string) $task['CREATED_DATE'] == '')
	{
		return false;
	}

	$instance = CTaskItem::getInstance($task['ID'], $this->getUserId()); // todo: user should come from outside
	return $instance->checkAccess(ActionDictionary::ACTION_TASK_DEADLINE);
}

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