Template::setRights

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Template
  4. setRights
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/template.php
  • Класс: BitrixTasksControlTemplate
  • Вызов: Template::setRights
private function setRights(array $fields)
{
	BitrixTasksItemAccessTaskTemplate::grantAccessLevel(
		$this->templateId,
		'U'.$this->userId,
		'full',
		[
			'CHECK_RIGHTS' => false,
		]
	);

	if ($this->userId !== (int) $fields['CREATED_BY'])
	{
		BitrixTasksItemAccessTaskTemplate::grantAccessLevel(
			$this->templateId,
			'U'.$fields['CREATED_BY'],
			'full',
			[
				'CHECK_RIGHTS' => false,
			]
		);
	}
}

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