Fixed typo: anonmyous

This commit is contained in:
Florian Rhiem 2016-12-21 14:36:54 +01:00
parent 11d6b24561
commit fdea226159
6 changed files with 13 additions and 13 deletions

View file

@ -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;