Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 4db4406

Browse files
committed
fix(website): deployment failing due to global access control
This reverts commit 211dac3.
1 parent 24b0a4d commit 4db4406

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/db/globals/Website.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/* eslint-disable node/prefer-global/process */
22
import type { GlobalConfig } from "payload";
33
import {
4-
anyone,
54
isOrganizer,
65
isSuperAdmin,
76
} from "@/db/access";
87

98
export const Website: GlobalConfig = {
109
slug: "2025",
1110
access: {
12-
read: anyone,
11+
read: () => true,
1312
update: isOrganizer || isSuperAdmin,
1413
},
1514
versions: {

libs/website/layouts/base.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { ReactNode } from 'react'
2+
import cuHackingLogo from '@cuhacking/shared/assets/logos/cuHacking/cuhacking-logo-1.svg'
23
import { useLoaderData } from '@remix-run/react'
34
import {
45
FOOTER_CONSTANTS,
@@ -8,12 +9,12 @@ import {
89
} from '@website/shared/ui/navigation'
910

1011
export function Layout({ children }: { children: ReactNode }) {
11-
const { header } = useLoaderData<{ header: { logo: { url: string }, links: { id: string, name: string, link: string }[] } }>()
12+
const { header } = useLoaderData<{ header: { links: { id: string, name: string, link: string }[] } }>()
1213

1314
return (
1415
<>
1516
<NavbarContainer
16-
logo={header.logo.url}
17+
logo={cuHackingLogo}
1718
links={header.links.map(({ id, ...rest }) => rest)}
1819
socials={NAVBAR_CONSTANTS.SOCIALS}
1920
hamburger={NAVBAR_CONSTANTS.HAMBURGER}

0 commit comments

Comments
 (0)