From aaaaf74c750c9fdb281193e74dd4aabd36faacb7 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Mon, 4 Sep 2023 15:31:34 +0200 Subject: [PATCH] feat: prevent public links resolving to actual location for CERN --- packages/web-app-files/src/views/spaces/DriveResolver.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web-app-files/src/views/spaces/DriveResolver.vue b/packages/web-app-files/src/views/spaces/DriveResolver.vue index 091ee03d259..458802b7c14 100644 --- a/packages/web-app-files/src/views/spaces/DriveResolver.vue +++ b/packages/web-app-files/src/views/spaces/DriveResolver.vue @@ -105,7 +105,8 @@ export default defineComponent({ onMounted(async () => { const space = unref(resolvedDrive.space) if (space && isPublicSpaceResource(space)) { - if (unref(isUserContext) && unref(fileId)) { + const isRunningOnEos = store.getters.configuration?.options?.runningOnEos + if (unref(isUserContext) && unref(fileId) && !isRunningOnEos) { try { const path = await clientService.owncloudSdk.files.getPathForFileId(unref(fileId)) await resolveToInternalLocation(path)