core: add noCheckPermView for judge download

This commit is contained in:
undefined committed 2021-05-09 00:11:55 +08:00
1 parent 3ba16c289a
commit ee693cf36e
3 files changed
+4 -1

No files matched your search

+1
View File
@@ -101,6 +101,7 @@ export async function end(body: JudgeResultBody) {
}
export class JudgeFilesDownloadHandler extends Handler {
noCheckPermView = true;
@post('files', Types.Set)
@post('pid', Types.UnsignedInt)
async post(domainId: string, files: Set<string>, pid: number) {
+2
View File
@@ -96,6 +96,8 @@ export class ProblemSendHandler extends Handler {
}
export class ProblemReceiveHandler extends Handler {
noCheckPermView = true;
async get({ domainId }) {
this.checkPerm(PERM.PERM_CREATE_PROBLEM);
let requests = await token.getMulti(token.TYPE_IMPORT, { domainId }).toArray();