Check new items list for permissions too
This commit is contained in:
parent
ea6a340290
commit
7e978619cf
@ -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,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user