1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

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

@ -26,6 +26,7 @@ You should also include the user name that made the change.
- ユーザー検索ダイアログでローカルユーザーを絞って検索できない問題を修正
- fix(client): MkHeader及びデッキのカラムでチャンネル一覧を選択したとき、最大5個までしか表示されない
- 管理画面の広告を10個以上見えるように
- Moderation note が保存できない
## 13.6.1 (2023/02/12)

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);