Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check new items list for permissions too
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent ea6a340 commit 7e97861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/mod-queue.tsx
Expand Up @@ -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,
});
Expand Down

0 comments on commit 7e97861

Please sign in to comment.