feat: make certificate page publicly accessible

- Add /certificate/* to public routes in root layout
- Display team leader name instead of current user
- Remove authentication requirement for viewing certificates
- Certificates now work without login

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maulana Sodiqin
2025-12-10 21:30:28 +07:00
co-authored by Claude
parent c518784810
commit 59c1bb0366
2 changed files with 9 additions and 5 deletions
+6
View File
@@ -52,6 +52,12 @@ export default function RootLayout() {
return;
}
// Certificate page - allow public access
if (pathname.startsWith('/certificate/')) {
setIsChecking(false);
return;
}
// Require authentication for all other routes
if (!session) {
navigate('/auth/login', { replace: true });