Compare commits

...

1 Commits

Author SHA1 Message Date
0b34b485da feat(server): assert agent is accepted for api operations
All checks were successful
arcad/emissary/pipeline/head This commit looks good
2024-03-04 19:03:17 +01:00

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
}