From 74b77d1e9c87b31ffc1afdf27d3ee13c94d8ca3f Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Tue, 9 Feb 2021 18:27:11 +0300 Subject: [PATCH] [bug] Consider empty string as an anonymous name --- DocService/sources/DocsCoServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index c45ede5fb..c9f0571f9 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -1888,7 +1888,7 @@ exports.install = function(server, callbackFunction) { dataUser.username = user.name; } } - if (!(edit.user && null != user.name)) { + if (!(edit.user && edit.user.name)) { data.canChangeName = true; } }