We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d1ed0 commit 4a1c96bCopy full SHA for 4a1c96b
api-service/auth/middleware/location.go
@@ -57,6 +57,12 @@ func Location(service service.APIServiceInterface) mux.MiddlewareFunc {
57
return
58
}
59
60
+ splittedLocation := strings.Split(location, ",")
61
+ if utils.ContainsSomeI(locations, splittedLocation...) {
62
+ h.ServeHTTP(w, r)
63
+ return
64
+ }
65
+
66
w.WriteHeader(http.StatusForbidden)
67
})
68
0 commit comments