Add UI for explicit publishing match schedule to TBA

This commit is contained in:
Kunal Mehta
2016-10-06 15:00:14 -07:00
parent fbd9bda712
commit 564fe33bb6
2 changed files with 34 additions and 0 deletions

View File

@@ -108,10 +108,14 @@ func ScheduleRepublishPostHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Failed to publish matches: "+err.Error(), 500)
return
}
} else {
http.Error(w, "TBA publishing is not enabled", 500)
return
}
http.Redirect(w, r, "/setup/schedule", 302)
}
// Saves the generated schedule to the database.
func ScheduleSavePostHandler(w http.ResponseWriter, r *http.Request) {
if !UserIsAdmin(w, r) {