mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.25.8",
|
"version": "2.25.9",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export async function end(body: JudgeResultBody) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class JudgeFilesDownloadHandler extends Handler {
|
export class JudgeFilesDownloadHandler extends Handler {
|
||||||
|
noCheckPermView = true;
|
||||||
@post('files', Types.Set)
|
@post('files', Types.Set)
|
||||||
@post('pid', Types.UnsignedInt)
|
@post('pid', Types.UnsignedInt)
|
||||||
async post(domainId: string, files: Set<string>, pid: number) {
|
async post(domainId: string, files: Set<string>, pid: number) {
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ export class ProblemSendHandler extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class ProblemReceiveHandler extends Handler {
|
export class ProblemReceiveHandler extends Handler {
|
||||||
|
noCheckPermView = true;
|
||||||
|
|
||||||
async get({ domainId }) {
|
async get({ domainId }) {
|
||||||
this.checkPerm(PERM.PERM_CREATE_PROBLEM);
|
this.checkPerm(PERM.PERM_CREATE_PROBLEM);
|
||||||
let requests = await token.getMulti(token.TYPE_IMPORT, { domainId }).toArray();
|
let requests = await token.getMulti(token.TYPE_IMPORT, { domainId }).toArray();
|
||||||
|
|||||||
Reference in new issue
Block a user