Add user authentication and role management
This commit is contained in:
@@ -109,7 +109,7 @@ async function createTaskFromSource(
|
||||
}
|
||||
|
||||
export async function POST(request: Request) {
|
||||
if (!isAdminRequest(request)) return adminForbidden();
|
||||
if (!(await isAdminRequest(request))) return adminForbidden();
|
||||
try {
|
||||
await ensureSchema();
|
||||
const body = (await request.json()) as ActionBody;
|
||||
|
||||
Reference in New Issue
Block a user