mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
core: add noCheckPermView for judge download
This commit is contained in:
1 parent
3ba16c289a
commit
ee693cf36e
3 files changed
+4
-1
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user