Add: Company allow-list can be set to allow anyone.

This commit is contained in:
Peter Nelson
2026-01-31 11:00:01 +00:00
committed by Peter Nelson
parent a6803199d5
commit da4dd91887
8 changed files with 67 additions and 20 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ NetworkClientInfo::~NetworkClientInfo()
bool NetworkClientInfo::CanJoinCompany(CompanyID company_id) const
{
Company *c = Company::GetIfValid(company_id);
return c != nullptr && c->allow_list.Contains(this->public_key);
return c != nullptr && (c->allow_any || c->allow_list.Contains(this->public_key));
}
/**