• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/userpermissions.php
  • Класс: BitrixRpaUserPermissions
  • Вызов: UserPermissions::canViewComment
public function canViewComment(?Item $item = null, ?EO_Timeline $timelineRecord = null): bool
{
	if ($this->isAccessDeniedToEverything())
	{
		return false;
	}
	if ($timelineRecord && $timelineRecord->getUserId() === $this->getUserId())
	{
		return true;
	}

	if ($item)
	{
		return $this->canModifyItemsInStage($item->getType(), $item->remindActualStageId());
	}

	return $this->hasAdminAccess();
}