Skip to content

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

🐛 Fix getSpace

Luke Vella22b47d5bcb54
diff --git a/apps/web/src/features/spaces/queries.ts b/apps/web/src/features/spaces/queries.ts
index cb6964b6e..0d34e3e28 100644
--- a/apps/web/src/features/spaces/queries.ts
+++ b/apps/web/src/features/spaces/queries.ts
@@ -35,10 +35,9 @@ export const getDefaultSpace = cache(async () => {
});
export const getSpace = cache(async ({ id }: { id: string }) => {
- const { ability } = await requireUserAbility();
return await prisma.space.findFirst({
where: {
- AND: [accessibleBy(ability).Space, { id }],
+ id,
},
});
});