Commit 57f0955d authored by ale's avatar ale

Failed group membership check should return 403, not 401

parent 2ddc7cf4
Pipeline #1428 passed with stages
in 1 minute and 40 seconds
......@@ -212,7 +212,7 @@ func (h *Server) handleHomepage(w http.ResponseWriter, req *http.Request, sessio
// service, because the 'g' parameter is untrusted at
// this stage.
if len(groups) == 0 {
http.Error(w, "Unauthorized", http.StatusUnauthorized)
http.Error(w, "Forbidden", http.StatusForbidden)
return
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment