diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-01-10 20:08:23 +0300 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-01-10 20:17:35 +0300 |
commit | 466a6b588d9e7770b1cbf278a63088e40d73b6e1 (patch) | |
tree | 3c5424f460e993bb0a866950b544713b732766be /src | |
parent | 791250c174dbcd6c8171a4bf5d45f7ac6beb48d2 (diff) |
refs #1900 fix image serving in direct editing, avoid passing empty shareToken, use the edition session to get the user ID
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/nodes/ImageView.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodes/ImageView.vue b/src/nodes/ImageView.vue index cf0dd521e..adb077b8f 100644 --- a/src/nodes/ImageView.vue +++ b/src/nodes/ImageView.vue @@ -129,7 +129,7 @@ export default { const sessionId = this.currentSession?.id const sessionToken = this.currentSession?.token const imageFileName = getQueryVariable(this.src, 'imageFileName') - if (getCurrentUser()) { + if (getCurrentUser() || !this.token) { return generateUrl('/apps/text/image?documentId={documentId}&sessionId={sessionId}&sessionToken={sessionToken}&imageFileName={imageFileName}', { documentId, |