mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: switch to injectUI
This commit is contained in:
4 files changed
+7
-8
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user