Check new items list for permissions too

This commit is contained in:
regalijan 2023-10-19 16:51:01 -04:00
parent ea6a340290
commit 7e978619cf
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -82,7 +82,7 @@ export async function loader({ context }: { context: RequestContext }) {
allowedTypes.push({ name: typeNames[type], value: type }); allowedTypes.push({ name: typeNames[type], value: type });
} }
if (!allowedTypes.length) if (!allowedTypes.length && !allowedNewItems.length)
throw new Response(null, { throw new Response(null, {
status: 403, status: 403,
}); });