{
e.preventDefault();
- window.location.href = "/";
+ window.location.href = "/roles";
}}
>
Cooper
@@ -57,7 +59,7 @@ export default function Header({ auth }: HeaderProps) {
setIsOpen(false)}
@@ -91,9 +93,9 @@ export default function Header({ auth }: HeaderProps) {
);
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index d8fac7c7..11133ba9 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -27,6 +27,8 @@ export const metadata: Metadata = {
};
export default function RootLayout(props: { children: React.ReactNode }) {
+ // Ensure user is authenticated
+
return (