mirror of
https://github.com/jech/galene.git
synced 2024-11-25 10:05:58 +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" {
|
||||
apiUserHandler(w, r, g, rest)
|
||||
usersHandler(w, r, g, rest)
|
||||
return
|
||||
} else if kind == ".fallback-users" && rest == "" {
|
||||
fallbackUsersHandler(w, r, g)
|
||||
|
@ -232,7 +232,7 @@ func apiGroupHandler(w http.ResponseWriter, r *http.Request, pth string) {
|
|||
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 !checkAdmin(w, r) {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue