mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: handle problem projection
This commit is contained in:
1 parent
3daafe5396
commit
9ea781f800
5 files changed
+18
-6
No files matched your search
@@ -297,6 +297,7 @@ export class ProblemDetailHandler extends ProblemHandler {
|
||||
if (!contest.canShowScoreboard(this.tdoc) || !contest.isLocked(this.tdoc)) {
|
||||
delete this.pdoc.nAccept;
|
||||
delete this.pdoc.nSubmit;
|
||||
delete this.pdoc.difficulty;
|
||||
delete this.pdoc.stats;
|
||||
}
|
||||
} else if (!problem.canViewBy(this.pdoc, this.user)) {
|
||||
|
||||
Reference in new issue
Block a user