mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix /record?all=1 (#707)
This commit is contained in:
1 parent
2ae4af762b
commit
3f3ecbd6d9
1 file changed
+5
@@ -79,6 +79,11 @@ class RecordListHandler extends ContestDetailBaseHandler {
|
|||||||
}
|
}
|
||||||
if (lang) q.lang = lang;
|
if (lang) q.lang = lang;
|
||||||
if (typeof status === 'number') q.status = status;
|
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) {
|
if (allDomain) {
|
||||||
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
|
this.checkPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN);
|
||||||
delete q.contest;
|
delete q.contest;
|
||||||
|
|||||||
Reference in new issue
Block a user