feat(server): assert agent is accepted for api operations
All checks were successful
arcad/emissary/pipeline/head This commit looks good

This commit is contained in:
wpetit 2024-03-04 19:03:17 +01:00
parent ab08d30d2a
commit 0b34b485da

View File

@ -183,7 +183,7 @@ func assertMatchingAgent() assertAgent {
}
agent := u.Agent()
if agent != nil && agent.ID == agentID {
if agent != nil && agent.ID == agentID && agent.Status == datastore.AgentStatusAccepted {
return true
}