diff options
author | Wu Cheng-Han | 2016-08-15 11:01:35 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-08-15 11:01:35 +0800 |
commit | e94810ff941f3e55c80795d431a0a8d52bb66a0d (patch) | |
tree | e4c2082652da6748c14b956a4a022fcb9e531566 | |
parent | 93ff287799a4e5412666df104c4dbea213300d93 (diff) |
Update to change the last change user saving strategy
Diffstat (limited to '')
-rw-r--r-- | lib/realtime.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/realtime.js b/lib/realtime.js index e18ac12a..2f5bbe34 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -602,8 +602,8 @@ function ifMayEdit(socket, callback) { mayEdit = false; break; } - //if user may edit and this note have owner (not anonymous usage) - if (socket.origin == 'operation' && mayEdit && note.owner) { + //if user may edit and this is a text operation + if (socket.origin == 'operation' && mayEdit) { //save for the last change user id if (socket.request.user && socket.request.user.logged_in) { note.lastchangeuser = socket.request.user.id; |