@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.25.8",
"version": "2.25.9",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
@ -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 {
async get({ domainId }) {
this.checkPerm(PERM.PERM_CREATE_PROBLEM);
let requests = await token.getMulti(token.TYPE_IMPORT, { domainId }).toArray();