1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-21 17:39:24 -05:00

モデレーターを凍結できないようにする ()

This commit is contained in:
MeiMei 2019-01-11 08:12:10 +09:00 committed by syuilo
parent 1546160f6a
commit 20ee2118ee

View file

@ -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
}, {