summaryrefslogtreecommitdiff
path: root/lib/realtime.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-04-11 22:48:15 +0200
committerGitHub2018-04-11 22:48:15 +0200
commit387afd1791d9293c0cf1bc0a9e9d44db7b1cd87e (patch)
tree11152bfdfb5fbafb2d8031b547c857e206c396ff /lib/realtime.js
parentf23f403bcb990a03fe27d5d4dda491c5de89c464 (diff)
parent2492cf2cdfce5fdb935862bcf71bb036b1920327 (diff)
Merge pull request #799 from SISheogorath/fix/AnonymousEditTypos
Fix typos for `allowAnonymousEdits`
Diffstat (limited to '')
-rw-r--r--lib/realtime.js2
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