pass "me" in a few places that lack it

This commit is contained in:
Hazelnoot 2025-06-22 15:34:37 -04:00
parent 7f547a8c10
commit 2e61fafe57
8 changed files with 9 additions and 9 deletions

View file

@ -68,7 +68,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
private activeUsersChart: ActiveUsersChart,
) {
super(meta, paramDef, async (ps, me) => {
const policies = await this.roleService.getUserPolicies(me ? me.id : null);
const policies = await this.roleService.getUserPolicies(me);
if (!policies.btlAvailable) {
throw new ApiError(meta.errors.btlDisabled);
}