mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 13:04:34 +00:00
fix policy check for unspecified "local" property in polls/recommendation endpoint
This commit is contained in:
parent
ee4dc27800
commit
31e00a0906
1 changed files with 0 additions and 1 deletions
|
@ -119,7 +119,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
query.andWhere('poll.userHost IS NOT NULL');
|
query.andWhere('poll.userHost IS NOT NULL');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!policies.ltlAvailable) throw new ApiError(meta.errors.ltlDisabled);
|
|
||||||
if (!policies.gtlAvailable) throw new ApiError(meta.errors.gtlDisabled);
|
if (!policies.gtlAvailable) throw new ApiError(meta.errors.gtlDisabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue