nocaps: Fix WOPI load.

Change-Id: I538be45897902e9d8ff63d85b1e486767dacbb2d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93484
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
Jan Holesovsky
2020-05-05 15:25:25 +02:00
parent d03aa27ea7
commit 168b3ed046

View File

@ -907,7 +907,10 @@ std::string WopiStorage::loadStorageFileToLocal(const Authorization& auth,
setLoaded(true);
// Now return the jailed path.
return Poco::Path(getJailPath(), getFileInfo().getFilename()).toString();
if (LOOLWSD::NoCapsForKit)
return getRootFilePath();
else
return Poco::Path(getJailPath(), getFileInfo().getFilename()).toString();
}
}
catch (const Poco::Exception& pexc)