Fixed typo: anonmyous
This commit is contained in:
@@ -767,7 +767,7 @@ function connection(socket) {
|
||||
var note = notes[noteId];
|
||||
//Only owner can change permission
|
||||
if (note.owner && note.owner == socket.request.user.id) {
|
||||
if (permission == 'freely' && !config.allowanonmyous) return;
|
||||
if (permission == 'freely' && !config.allowanonymous) return;
|
||||
note.permission = permission;
|
||||
models.Note.update({
|
||||
permission: permission
|
||||
@@ -915,4 +915,4 @@ function connection(socket) {
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = realtime;
|
||||
module.exports = realtime;
|
||||
|
||||
Reference in New Issue
Block a user