diff options
author | Sheogorath | 2018-04-10 14:38:39 +0200 |
---|---|---|
committer | Sheogorath | 2018-04-10 14:40:27 +0200 |
commit | 2492cf2cdfce5fdb935862bcf71bb036b1920327 (patch) | |
tree | f41c20344f27a99844e8baedc719fa2b709106ac /lib/realtime.js | |
parent | bdb8631a7b99771990890db20b171618ef06c6e9 (diff) |
Fix typos for `allowAnonymousEdits`
Looks like we lost some variables during the refactoring of the configs
to camel case.
This should fix it.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'lib/realtime.js')
-rw-r--r-- | lib/realtime.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/realtime.js b/lib/realtime.js index d8b0b4c5..070bde2d 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -788,7 +788,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.allowAnonymous && !config.allowAnonymousedits) return + if (permission === 'freely' && !config.allowAnonymous && !config.allowAnonymousEdits) return note.permission = permission models.Note.update({ permission: permission |