fix(server): tweak admin/show-user api

Fix #9883
This commit is contained in:
syuilo 2023-02-22 17:17:36 +09:00
parent a7977c6642
commit 84e2ee220b
2 changed files with 1 additions and 6 deletions

View file

@ -59,12 +59,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
throw new Error('cannot show info of admin');
}
if (!await this.roleService.isAdministrator(_me)) {
return {
isSuspended: user.isSuspended,
};
}
const signins = await this.signinsRepository.findBy({ userId: user.id });
const roles = await this.roleService.getUserRoles(user.id);