1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-01 00:08:24 +09:00
This commit is contained in:
syuilo 2020-02-18 17:53:56 +09:00
parent a54de07260
commit b7f5458684

View File

@ -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');
}