session: fix importing non local file

This commit is contained in:
jean-emmanuel 2019-01-07 09:57:17 +01:00
parent ee0acf795f
commit e525960b88
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
}