• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/template/templatechecklistfacade.php
  • Класс: BitrixTasksCheckListTemplateTemplateCheckListFacade
  • Вызов: TemplateCheckListFacade::fillItemAccessActions
static function fillItemAccessActions($templateId, $checkList, $userId)
{
	$actions = array_keys(self::ACTIONS['ITEM']);
	$checkListId = $checkList->getFields()['ID'];
	$canUpdate = BitrixTasksAccessTemplateAccessController::can((int) $userId, BitrixTasksAccessActionDictionary::ACTION_TEMPLATE_EDIT, (int) $templateId);
	static::$itemAccessActions[$templateId][$userId][$checkListId] = array_fill_keys($actions, $canUpdate);
}