• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/manager/task.php
  • Класс: BitrixTasksManagershould
  • Вызов: should::ensureDatePlanChangeAllowed
static function ensureDatePlanChangeAllowed($userId, array &$data)
{
	$projdepKey = ProjectDependence::getCode(true);

	// smth is meant to be added in project dependency, thus we must enable ALLOW_CHANGE_DEADLINE for the task
	// todo: this is required for making dependencies in case of task update with rights loose. remove this when AUTHOR_ID field introduced
	if (array_key_exists($projdepKey, $data) && !empty($data[ $projdepKey ]) && $userId == $data[ 'RESPONSIBLE_ID' ])
	{
		$data[ 'ALLOW_CHANGE_DEADLINE' ] = 'Y';
	}
}