testing continued

This commit is contained in:
0xdcarns
2022-01-18 09:51:45 -05:00
parent b5423e3ece
commit aebe39e46b
4 changed files with 3 additions and 16 deletions

View File

@@ -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
}
}