fix policy check for unspecified "local" property in polls/recommendation endpoint
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user