Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Formatting stuff
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 838f1db commit cba05d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/routes/hammer.tsx
Expand Up @@ -40,7 +40,7 @@ export default function () {
/>
<Button ml="8px">Search</Button>
</HStack>
<Card maxW="sm" visibility={ visible ? "visible" : "hidden" }>
<Card maxW="sm" visibility={visible ? "visible" : "hidden"}>
<CardBody>
<Image mb="16" src={avatarUrl} />
<Stack divider={<StackDivider />} spacing="6">
Expand Down
4 changes: 1 addition & 3 deletions components/AppealCard.tsx
Expand Up @@ -90,9 +90,7 @@ export default function (props: AppealCardProps) {
</ModalContent>
</Modal>
<CardHeader>
<Heading size="md">
Appeal for {props.user.username}
</Heading>
<Heading size="md">Appeal for {props.user.username}</Heading>
<Text fontSize="xs">ID: {props.user.id}</Text>
</CardHeader>
<CardBody>
Expand Down
9 changes: 7 additions & 2 deletions functions/permissions.ts
@@ -1,4 +1,8 @@
export default async function (userid: string, roles?: string[], context?: RequestContext): Promise<number> {
export default async function (
userid: string,
roles?: string[],
context?: RequestContext
): Promise<number> {
let permissions = 0;

if (roles?.includes("374851061233614849")) permissions |= 1 << 0; // Administration
Expand All @@ -9,7 +13,8 @@ export default async function (userid: string, roles?: string[], context?: Reque
if (
["165594923586945025", "289372404541554689", "396347223736057866"].includes(
userid
) || (Boolean(await context?.env.DATA.get(`gamemod_${userid}`)))
) ||
Boolean(await context?.env.DATA.get(`gamemod_${userid}`))
)
permissions |= 1 << 5;
if (
Expand Down
2 changes: 1 addition & 1 deletion public/app.webmanifest
Expand Up @@ -22,4 +22,4 @@
"display": "standalone",
"theme_color": "#00a8f8",
"background_color": "#ffffff"
}
}

0 comments on commit cba05d6

Please sign in to comment.