{% set can_view = submission.is_accessible_by(profile, check_contest=False) or is_in_editable_contest %}