mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-16 17:51:17 +10:00
feat: partial user platform support + statusMessage -> message
This commit is contained in:
@ -5,7 +5,7 @@ import sanitize from "sanitize-filename";
|
||||
export default defineEventHandler(async (h3) => {
|
||||
const unsafeId = getRouterParam(h3, "id");
|
||||
if (!unsafeId)
|
||||
throw createError({ statusCode: 400, statusMessage: "Invalid ID" });
|
||||
throw createError({ statusCode: 400, message: "Invalid ID" });
|
||||
|
||||
const userId = await aclManager.getUserIdACL(h3, ["object:delete"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user