From 5ad33b626d7481db2c11546019d6c493cb3a7bce Mon Sep 17 00:00:00 2001 From: stone Date: Tue, 31 Dec 2019 15:16:20 +0800 Subject: [PATCH] Update RPCServer.js Fixed bug, when multi-user login, the access path is incorrect --- server/RPCServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/RPCServer.js b/server/RPCServer.js index 9bbc6b3..e540d3c 100644 --- a/server/RPCServer.js +++ b/server/RPCServer.js @@ -82,8 +82,8 @@ const methods = { if (config.homeDirectory) { return config.homeDirectory } - } else if (typeof user === 'string' && user && config.homeDirectory.user) { - return config.homeDirectory.user + } else if (typeof user === 'string' && user && config.homeDirectory[user]) { + return config.homeDirectory[user] } return process.cwd() },