diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index a072df8c..38c8db7b 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -20,6 +20,7 @@ interface LayoutProps { export default function Layout({ children }: LayoutProps) { const location = useLocation(); const { user, profile, roles, signOut, loading } = useAuth(); + const isOwner = Array.isArray(roles) && roles.includes("owner"); const navigation = [ { name: "Home", href: "/" }, @@ -61,12 +62,7 @@ export default function Layout({ children }: LayoutProps) { {/* Navigation */}