Skip to content
Snippets Groups Projects
Commit 20ee2118 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

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

parent 1546160f
No related branches found
No related tags found
No related merge requests found
......@@ -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
}, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment