Disallow access to /admin if user is not admin

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-12-10 12:15:52 +01:00
1 parent c1a7db12e3
commit 2dd2cd2d4b
2 files changed
+12 -2

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ export function AuthProvider({ children }) {
const u = await getUser();
setUser(u);
setLoading(false);
console.log(u);
})();
}, []);