fix policy check for unspecified "local" property in polls/recommendation endpoint

This commit is contained in:
Hazelnoot 2025-05-12 13:56:12 -04:00
parent ee4dc27800
commit 31e00a0906

View file

@ -119,7 +119,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
query.andWhere('poll.userHost IS NOT NULL');
}
} else {
if (!policies.ltlAvailable) throw new ApiError(meta.errors.ltlDisabled);
if (!policies.gtlAvailable) throw new ApiError(meta.errors.gtlDisabled);
}