mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 03:22:52 +09:00
Fix bug
This commit is contained in:
parent
9e812b5a08
commit
e1ef5e4dea
@ -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 New Issue
Block a user