モデレーターを凍結できないようにする (#3877)
This commit is contained in:
		| @@ -37,6 +37,10 @@ export default define(meta, (ps) => new Promise(async (res, rej) => { | |||||||
| 		return rej('cannot suspend admin'); | 		return rej('cannot suspend admin'); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if (user.isModerator) { | ||||||
|  | 		return rej('cannot suspend moderator'); | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	await User.findOneAndUpdate({ | 	await User.findOneAndUpdate({ | ||||||
| 		_id: user._id | 		_id: user._id | ||||||
| 	}, { | 	}, { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 MeiMei
					MeiMei