{# Adapted from @hydrooj/ui-default 4.58.5; AGPL-3.0. See NOTICE.md. #}
{% import "components/user.html" as user with context %}
{% import "components/contest.html" as contest with context %}
{% endif %}
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %}
{% if model.contest.canShowRecord.call(handler, tdoc, true) %}