mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Rename usersHandler.
This commit is contained in:
parent
bbd9ef1f5c
commit
df46e6df21
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if kind == ".users" {
|
if kind == ".users" {
|
||||||
apiUserHandler(w, r, g, rest)
|
usersHandler(w, r, g, rest)
|
||||||
return
|
return
|
||||||
} else if kind == ".fallback-users" && rest == "" {
|
} else if kind == ".fallback-users" && rest == "" {
|
||||||
fallbackUsersHandler(w, r, g)
|
fallbackUsersHandler(w, r, g)
|
||||||
|
@ -232,7 +232,7 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func apiUserHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
|
func usersHandler(w http.ResponseWriter, r *http.Request, g, pth string) {
|
||||||
if pth == "/" {
|
if pth == "/" {
|
||||||
if !checkAdmin(w, r) {
|
if !checkAdmin(w, r) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue