Disallow access to /admin if user is not admin

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-12-10 12:15:52 +01:00
parent c1a7db12e3
commit 2dd2cd2d4b
2 changed files with 12 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@ export function AuthProvider({ children }) {
const u = await getUser();
setUser(u);
setLoading(false);
console.log(u);
})();
}, []);