diff options
Diffstat (limited to 'index.go')
-rw-r--r-- | index.go | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -107,6 +107,22 @@ func handleIndex(w http.ResponseWriter, req *http.Request) { return } + if userDepartment == staffDepartment { + err := tmpl.ExecuteTemplate( + w, + "staff", + struct { + Name string + }{ + userName, + }, + ) + if err != nil { + log.Println(err) + } + return + } + /* TODO: The below should be completed on-update. */ type groupT struct { Handle courseGroupT |