From 9470dd9cfadb251f5bc8a1dddeccc108df12c418 Mon Sep 17 00:00:00 2001 From: undefined Date: Mon, 19 Dec 2022 14:13:09 +0800 Subject: [PATCH] ui: allow contest and homework clone --- packages/ui-default/templates/contest_edit.html | 3 +++ packages/ui-default/templates/homework_edit.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/ui-default/templates/contest_edit.html b/packages/ui-default/templates/contest_edit.html index bea9cf753..276232ef3 100644 --- a/packages/ui-default/templates/contest_edit.html +++ b/packages/ui-default/templates/contest_edit.html @@ -210,6 +210,9 @@ + {% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_CONTEST) %} + {% if handler.user.own(tdoc) or handler.user.hasPerm(perm.PERM_EDIT_HOMEWORK) %}