diff --git a/app/components/nav/dashboard/Mobile.tsx b/app/components/nav/dashboard/Mobile.tsx
index d7f706d..18862a6 100644
--- a/app/components/nav/dashboard/Mobile.tsx
+++ b/app/components/nav/dashboard/Mobile.tsx
@@ -10,7 +10,6 @@ import MobileMenuItem from 'app/components/nav/hub/MobileMenuItem';
export default function Mobile({ onClose }) {
const bdeConfig = useBDEConfig();
- const clubsConfig = useClubsConfig();
const ItemsList = ({ config }) =>
useMemo(
@@ -26,7 +25,7 @@ export default function Mobile({ onClose }) {
return (
<>
- {(bdeConfig.length > 0 || clubsConfig.length > 0) && (
+ {(bdeConfig.length > 0) && (
,
@@ -42,9 +41,8 @@ export default function Mobile({ onClose }) {
- {clubsConfig.length > 0 && }
+ {}
-
>
);
}
diff --git a/app/components/nav/hub/Desktop.tsx b/app/components/nav/hub/Desktop.tsx
index 02b7220..aa711b3 100644
--- a/app/components/nav/hub/Desktop.tsx
+++ b/app/components/nav/hub/Desktop.tsx
@@ -10,7 +10,6 @@ import config from './config';
export default function Desktop() {
const bdeConfig = useBDEConfig();
- const clubsConfig = useClubsConfig();
return useMemo(
() => (
@@ -19,7 +18,7 @@ export default function Desktop() {
))}
- {(bdeConfig.length > 0 || clubsConfig.length > 0) && (
+ {(bdeConfig.length > 0) && (
,
@@ -31,6 +30,6 @@ export default function Desktop() {
)}
>
),
- [bdeConfig.length, clubsConfig.length]
+ [bdeConfig.length]
);
}
diff --git a/app/entities/clubs/queries/getClubs.ts b/app/entities/clubs/queries/getClubs.ts
index a818fc7..287e8a7 100644
--- a/app/entities/clubs/queries/getClubs.ts
+++ b/app/entities/clubs/queries/getClubs.ts
@@ -5,7 +5,7 @@ import { resolver } from '@blitzjs/rpc';
type GetClubsInput = Pick;
export default resolver.pipe(
- resolver.authorize(),
+ resolver.authorize(['*', 'bde']),
async ({ where, orderBy, skip = 0, take }: GetClubsInput, _ctx) => {
const clubs = await db.club.findMany({
where,