fix: agent permission erlaubt installer/download
This commit is contained in:
parent
346aea73b9
commit
fabc518bb8
@ -135,6 +135,7 @@ func hasAPIKeyPermission(key *db.APIKey, r *http.Request) bool {
|
||||
path == "/api/v1/agent/register" ||
|
||||
path == "/api/v1/firmware" ||
|
||||
path == "/api/v1/firmware/download" ||
|
||||
path == "/api/v1/installer/download" ||
|
||||
strings.HasPrefix(path, "/api/v1/agents/")
|
||||
|
||||
case "read":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user