mirror of
https://github.com/jech/galene.git
synced 2024-12-22 07:15:47 +01:00
Return 404 errors for tokens in unknown groups.
This commit is contained in:
parent
8ad6a7e2d2
commit
9a6ed2c8c8
1 changed files with 6 additions and 0 deletions
|
@ -500,6 +500,12 @@ func tokensHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
|
||||||
if !checkAdmin(w, r) {
|
if !checkAdmin(w, r) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// check that the group exists
|
||||||
|
_, err := group.GetDescription(g)
|
||||||
|
if err != nil {
|
||||||
|
httpError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
if pth == "/" {
|
if pth == "/" {
|
||||||
if r.Method == "HEAD" || r.Method == "GET" {
|
if r.Method == "HEAD" || r.Method == "GET" {
|
||||||
tokens, etag, err := token.List(g)
|
tokens, etag, err := token.List(g)
|
||||||
|
|
Loading…
Reference in a new issue