mirror of https://github.com/status-im/codimd.git
Update to change the last change user saving strategy
This commit is contained in:
parent
93ff287799
commit
e94810ff94
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue