Feat: strengthen permission

This commit is contained in:
unitwk 2022-12-22 21:53:32 +08:00
parent b6fe1d89f3
commit 91be4cf353

View File

@ -149,7 +149,7 @@ router.post(
try {
const serviceUuid = String(ctx.query.remote_uuid);
const instanceUuid = String(ctx.query.uuid);
const taskName = String(ctx.query.task_name);
const taskName = String(ctx.query.task_name).toLowerCase().trim();
const parameter = ctx.request.body;
// some asynchronous tasks are only allowed for administrators