fixed return and logs

This commit is contained in:
0xdcarns
2021-12-07 11:15:01 -05:00
parent 95528f510a
commit 6184d0b965
3 changed files with 6 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ func securityCheck(reqAdmin bool, next http.Handler) http.HandlerFunc {
networks, _ := json.Marshal([]string{ALL_NETWORK_ACCESS})
r.Header.Set("networks", string(networks))
next.ServeHTTP(w, r)
return
}
err, networks, username := SecurityCheck(reqAdmin, params["networkname"], bearerToken)