Unlock negative-sentinel company condition scopes
This commit is contained in:
parent
780e739daa
commit
087ebf1097
18 changed files with 1315 additions and 79 deletions
|
|
@ -495,8 +495,7 @@ fn resolve_company_target_ids(
|
|||
.companies
|
||||
.iter()
|
||||
.filter(|company| {
|
||||
company.active
|
||||
&& company.controller_kind == RuntimeCompanyControllerKind::Human
|
||||
company.active && company.controller_kind == RuntimeCompanyControllerKind::Human
|
||||
})
|
||||
.map(|company| company.company_id)
|
||||
.collect())
|
||||
|
|
@ -532,8 +531,10 @@ fn resolve_company_target_ids(
|
|||
{
|
||||
Ok(vec![selected_company_id])
|
||||
} else {
|
||||
Err("target requires selected_company_id to reference an active company"
|
||||
.to_string())
|
||||
Err(
|
||||
"target requires selected_company_id to reference an active company"
|
||||
.to_string(),
|
||||
)
|
||||
}
|
||||
}
|
||||
RuntimeCompanyTarget::ConditionTrueCompany => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue