pass "me" in a few places that lack it
This commit is contained in:
parent
7f547a8c10
commit
2e61fafe57
8 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue