feat: Add role-based frontend controls

- Update User type to include role field
- Modify dashboard template to conditionally show admin links
- Add protected dashboard route with user context
- Update main.go to serve dashboard with proper authentication
This commit is contained in:
2026-01-26 16:56:22 -05:00
parent 734bad4697
commit f8eaca1b08
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@ type User struct {
ID string
Username string
Email string
Role string
}
type PageData struct {