Fix auth check for short links
This commit is contained in:
@ -27,9 +27,9 @@ export async function loader({ context }: { context: RequestContext }) {
|
||||
});
|
||||
|
||||
if (
|
||||
![0, 2, 4, 5, 6, 7, 9, 10, 11, 12].find(
|
||||
typeof [0, 2, 4, 5, 6, 7, 9, 10, 11, 12].find(
|
||||
(i) => context.data.current_user.permissions & (1 << i),
|
||||
)
|
||||
) === "undefined"
|
||||
)
|
||||
throw new Response(null, {
|
||||
status: 403,
|
||||
|
Reference in New Issue
Block a user