fix: agent permission erlaubt installer/download

This commit is contained in:
cynfo3000 2026-03-10 01:34:50 +01:00
parent 346aea73b9
commit fabc518bb8

View File

@ -135,6 +135,7 @@ func hasAPIKeyPermission(key *db.APIKey, r *http.Request) bool {
path == "/api/v1/agent/register" || path == "/api/v1/agent/register" ||
path == "/api/v1/firmware" || path == "/api/v1/firmware" ||
path == "/api/v1/firmware/download" || path == "/api/v1/firmware/download" ||
path == "/api/v1/installer/download" ||
strings.HasPrefix(path, "/api/v1/agents/") strings.HasPrefix(path, "/api/v1/agents/")
case "read": case "read":