core: fix /record?all=1 (#707)

This commit is contained in:
panda authored and GitHub committed 2023-12-19 17:26:14 +08:00
1 parent 2ae4af762b
commit 3f3ecbd6d9
1 file changed
+5
+5
View File
@@ -79,6 +79,11 @@ class RecordListHandler extends ContestDetailBaseHandler {
}
if (lang) q.lang = lang;
if (typeof status === 'number') q.status = status;
if (all) {
this.checkPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD);
this.checkPerm(PERM.PERM_VIEW_HOMEWORK_HIDDEN_SCOREBOARD);
delete q.contest;
}
if (allDomain) {
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
delete q.contest;