mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 16:20:36 -05:00
Migrate Prettier/Eslint/Stylelint setup to Biome (#1772)
* Initial * CSS lint * Test CI * Add 1v1, 2v2, and 3v3 Tags (#1771) * Initial * CSS lint * Test CI * Rename step --------- Co-authored-by: xi <104683822+ximk@users.noreply.github.com>
This commit is contained in:
@@ -4,13 +4,13 @@ import { getUserId, isImpersonating } from "~/features/auth/core/user.server";
|
||||
import { isMod } from "~/permissions";
|
||||
|
||||
export const loader: LoaderFunction = async ({ request }) => {
|
||||
const user = await getUserId(request);
|
||||
const user = await getUserId(request);
|
||||
|
||||
if (process.env.NODE_ENV === "production" && !isMod(user)) {
|
||||
throw redirect("/");
|
||||
}
|
||||
if (process.env.NODE_ENV === "production" && !isMod(user)) {
|
||||
throw redirect("/");
|
||||
}
|
||||
|
||||
return {
|
||||
isImpersonating: await isImpersonating(request),
|
||||
};
|
||||
return {
|
||||
isImpersonating: await isImpersonating(request),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user