• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/checklist/checklistfacade.php
  • Класс: BitrixTasksCheckListCheckListFacade
  • Вызов: CheckListFacade::getAccessControllerClass
static function getAccessControllerClass(): string;

/**
 * Checks if action is allowed for user and entity.
 *
 * @param int $entityId
 * @param CheckList $checkList
 * @param int $userId
 * @param $actionId
 * @return bool
 */
public static function isActionAllowed($entityId, $checkList, $userId, $actionId)
{
	$action = ActionDictionary::ACTION_CHECKLIST_EDIT;

	if ($actionId == self::ACTION_ADD)
	{
		$action = ActionDictionary::ACTION_CHECKLIST_ADD;
	}
	elseif ($actionId == self::ACTION_TOGGLE)
	{
		$action = ActionDictionary::ACTION_CHECKLIST_TOGGLE;
	}

	return static::checkAccess($entityId, $userId, $action, $checkList);
}