diff options
author | Christoph (Sheogorath) Kern | 2018-01-20 18:56:09 +0100 |
---|---|---|
committer | GitHub | 2018-01-20 18:56:09 +0100 |
commit | b7e227e9d587af7268e126fca1db60ad3e1c29f9 (patch) | |
tree | 9596ac963ec1eeea3ee1370ec5963ef4d920568d /lib/realtime.js | |
parent | 2eb30782d558a6e2652ba37b090164369a23120b (diff) | |
parent | 6ae4b8bf1369bff8cc50325b66db66659d2718a5 (diff) |
Merge pull request #690 from Nebukadneza/add_allow_anonymous_edits
Add option to enable `freely` permission in closed instance
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 e03e2d0b..c731e5b0 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -781,7 +781,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) return + if (permission === 'freely' && !config.allowanonymous && !config.allowanonymousedits) return note.permission = permission models.Note.update({ permission: permission |