diff --git a/src/utils/file-config.js b/src/utils/file-config.js index b61e8bb..fa8c0f0 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -34,7 +34,7 @@ export default { fileUrl = fileUrl.replaceAll('#', '%23') fileUrl = fileUrl.replaceAll(/%5C/g, '/') - if (file.userId !== store.getters.userId) { + if (file.userId !== store.getters.userId && !shareToken) { return `${baseUrl}/pre-file/${file.id}/${encodeURI(file.name)}?jmal-token=${token}&name=${username}` }