Skip to content
Snippets Groups Projects
Commit 84e2ee22 authored by syuilo's avatar syuilo
Browse files

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

Fix #9883
parent a7977c66
No related branches found
Tags 13.13.0-beta.3
Loading
......@@ -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)
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment