mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
モデレーターを凍結できないようにする (#3877)
This commit is contained in:
parent
1546160f6a
commit
20ee2118ee
@ -37,6 +37,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
|
||||
return rej('cannot suspend admin');
|
||||
}
|
||||
|
||||
if (user.isModerator) {
|
||||
return rej('cannot suspend moderator');
|
||||
}
|
||||
|
||||
await User.findOneAndUpdate({
|
||||
_id: user._id
|
||||
}, {
|
||||
|
Loading…
Reference in New Issue
Block a user