From 84e2ee220b360d56e1817396271c2234f7e2dea6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2023 17:17:36 +0900 Subject: [PATCH] fix(server): tweak admin/show-user api Fix #9883 --- CHANGELOG.md | 1 + .../backend/src/server/api/endpoints/admin/show-user.ts | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa3a9692e..3a169284f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/packages/backend/src/server/api/endpoints/admin/show-user.ts b/packages/backend/src/server/api/endpoints/admin/show-user.ts index b25a9deb6..9d19efbbc 100644 --- a/packages/backend/src/server/api/endpoints/admin/show-user.ts +++ b/packages/backend/src/server/api/endpoints/admin/show-user.ts @@ -59,12 +59,6 @@ export default class extends Endpoint { 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);