mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 00:36:42 -06:00
Fix bug
This commit is contained in:
parent
a54de07260
commit
b7f5458684
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export default define(meta, async (ps, me) => {
|
|||
throw new Error('user not found');
|
||||
}
|
||||
|
||||
if (me.isModerator && user.isAdmin) {
|
||||
if ((me.isModerator && !me.isAdmin) && user.isAdmin) {
|
||||
throw new Error('cannot show info of admin');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue