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

This commit is contained in:
wpetit 2024-03-04 19:03:17 +01:00
parent ab08d30d2a
commit 0b34b485da
1 changed files with 1 additions and 1 deletions

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
}