mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
testing continued
This commit is contained in:
@@ -185,7 +185,7 @@ func authorize(networkCheck bool, authNetwork string, next http.Handler) http.Ha
|
||||
r.Header.Set("ismasterkey", "yes")
|
||||
}
|
||||
if !isadmin && params["network"] != "" {
|
||||
if functions.SliceContains(networks, params["network"]) {
|
||||
if logic.StringSliceContains(networks, params["network"]) {
|
||||
isnetadmin = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user