core: switch to injectUI

This commit is contained in:
undefined committed 2024-02-23 07:15:57 +08:00
1 parent bdb86dd9f6
commit e44054aa40
4 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ export class ContestScoreboardHandler extends ContestDetailBaseHandler {
if (!realtime && this.tdoc.lockAt && !this.tdoc.unlocked) {
config.lockAt = this.tdoc.lockAt;
}
const allGroups = this.user.hasPerm(PERM.PERM_EDIT_CONTEST_SELF) || (this.user.own(this.tdoc) && this.user.hasPerm(PERM.PERM_EDIT_CONTEST))
const allGroups = this.user.hasPerm(PERM.PERM_EDIT_CONTEST_SELF) || (this.user.own(this.tdoc) && this.user.hasPerm(PERM.PERM_EDIT_CONTEST));
const [[, rows, udict, pdict], groups] = await Promise.all([
contest.getScoreboard.call(this, domainId, tid, config),
user.listGroup(domainId, allGroups ? undefined : this.user._id),