# HG changeset patch # User Sascha L. Teichmann # Date 1533284854 -7200 # Node ID 003243ec5ce5a152d23f62d4fc636516066cabc7 # Parent 363983d5c567d0a8fa84d16f21019521a9d71c53 Don't crash if we doing update as unprivileged user without a bounding box. diff -r 363983d5c567 -r 003243ec5ce5 controllers/user.go --- a/controllers/user.go Thu Aug 02 19:25:30 2018 +0200 +++ b/controllers/user.go Fri Aug 03 10:27:34 2018 +0200 @@ -116,6 +116,10 @@ ) } } else { + if newUser.Extent == nil { + err = JSONError{http.StatusBadRequest, "extent is mandatory"} + return + } res, err = db.Exec( updateUserUnprivSQL, user,