summaryrefslogtreecommitdiff
path: root/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'index.go')
-rw-r--r--index.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/index.go b/index.go
index 55216fd..4988689 100644
--- a/index.go
+++ b/index.go
@@ -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