From 7b996d736cfb58b47d81d5e79ae87639fb3f84ee 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..e7d74113ed8 100644 --- a/packages/web-app-files/src/views/spaces/DriveResolver.vue +++ b/packages/web-app-files/src/views/spaces/DriveResolver.vue @@ -104,7 +104,8 @@ export default defineComponent({ onMounted(async () => { const space = unref(resolvedDrive.space) - if (space && isPublicSpaceResource(space)) { + const isRunningOnEos = store.getters.configuration?.options?.runningOnEos + if (space && isPublicSpaceResource(space) && !isRunningOnEos) { if (unref(isUserContext) && unref(fileId)) { try { const path = await clientService.owncloudSdk.files.getPathForFileId(unref(fileId))