feat(server): assert agent is accepted for api operations
arcad/emissary/pipeline/head This commit looks good
Details
arcad/emissary/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ab08d30d2a
commit
0b34b485da
|
@ -183,7 +183,7 @@ func assertMatchingAgent() assertAgent {
|
||||||
}
|
}
|
||||||
|
|
||||||
agent := u.Agent()
|
agent := u.Agent()
|
||||||
if agent != nil && agent.ID == agentID {
|
if agent != nil && agent.ID == agentID && agent.Status == datastore.AgentStatusAccepted {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue