Reserved directory for public interface now lives in public instead of _public

This commit is contained in:
nemunaire 2018-01-21 15:03:33 +01:00
parent c118035c33
commit c18465d498
3 changed files with 8 additions and 8 deletions

View file

@ -55,7 +55,7 @@ func (c submissionTeamChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)
team := sURL[0]
// Check team validity and existance
if len(team) < 1 || team[0] == '_' {
if len(team) < 1 || team == "public" {
log.Println("INVALID TEAM:", team)
http.Error(w, "{\"errmsg\":\"Équipe inexistante.\"}", http.StatusBadRequest)
return