feat(server): assert agent is accepted for api operations
All checks were successful
arcad/emissary/pipeline/head This commit looks good
All checks were successful
arcad/emissary/pipeline/head This commit looks good
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…
x
Reference in New Issue
Block a user