session: fix importing non local file

This commit is contained in:
jean-emmanuel 2019-01-07 09:57:17 +01:00
parent c3f9b0b2bd
commit e3364e2566
2 changed files with 7 additions and 2 deletions

View file

@ -116,7 +116,7 @@ module.exports = {
sessionSetPath: function(data, clientId) {
if (settings.read('remoteSaving') && !settings.read('remoteSaving').test(ipc.clients[clientId].address)) {
if (!data.path || settings.read('remoteSaving') && !settings.read('remoteSaving').test(ipc.clients[clientId].address)) {
return
}