mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
feat: check mute when messaging, closes #11932
This commit is contained in:
@@ -380,6 +380,7 @@ Messaging.canMessageRoom = async (uid, roomId) => {
|
||||
Messaging.isUserInRoom(uid, roomId),
|
||||
privileges.global.can('chat', uid),
|
||||
checkReputation(uid),
|
||||
user.checkMuted(uid),
|
||||
]);
|
||||
if (!roomData) {
|
||||
throw new Error('[[error:no-room]]');
|
||||
|
||||
Reference in New Issue
Block a user