core&judge: add isTrusted option

This commit is contained in:
undefined committed 2024-11-03 18:27:41 +08:00
1 parent b6834c5c55
commit 4d7fa024e7
4 files changed
+12 -4

No files matched your search

+1
View File
@@ -112,6 +112,7 @@ export class JudgeTask {
next: this.next,
isSelfSubmission: this.meta.problemOwner === this.request.uid,
key: md5(`${this.source}/${getConfig('secret')}`),
trusted: this.request.trusted,
lang: this.lang,
langConfig: (this.request.type === 'generate' || ['objective', 'submit_answer'].includes(this.request.config.type))
? null : this.session.getLang(this.lang),