Skip to content
Snippets Groups Projects
Commit 57f0955d authored by ale's avatar ale
Browse files

Failed group membership check should return 403, not 401

parent 2ddc7cf4
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment