mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -32,7 +32,7 @@ SocketMeta.rooms.enter = function (socket, data, callback) {
|
||||
data.enter = data.enter.toString();
|
||||
}
|
||||
|
||||
if (data.enter && data.enter.startsWith('uid_') && data.enter !== 'uid_' + socket.uid) {
|
||||
if (data.enter && data.enter.startsWith('uid_') && data.enter !== `uid_${socket.uid}`) {
|
||||
return callback(new Error('[[error:not-allowed]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user