Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix api key page access

Luke Vellac8879024ffed
diff --git a/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx b/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
index 596a4619c..4ae1458bf 100644
--- a/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/api-keys/page.tsx
@@ -31,7 +31,7 @@ export default async function ApiKeysSettingsPage() {
const [space, user] = await Promise.all([requireSpace(), requireUser()]);
- if (space.tier !== "pro" && space.ownerId !== user.id) {
+ if (space.tier !== "pro" || space.ownerId !== user.id) {
return notFound();
}