From 7e978619cfb136dade6defa1a28450b647b92d23 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:01 -0400 Subject: [PATCH] Check new items list for permissions too --- app/routes/mod-queue.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/mod-queue.tsx b/app/routes/mod-queue.tsx index f90a27e..8d58855 100644 --- a/app/routes/mod-queue.tsx +++ b/app/routes/mod-queue.tsx @@ -82,7 +82,7 @@ export async function loader({ context }: { context: RequestContext }) { allowedTypes.push({ name: typeNames[type], value: type }); } - if (!allowedTypes.length) + if (!allowedTypes.length && !allowedNewItems.length) throw new Response(null, { status: 403, });