Skip to content

Commit

Permalink
feat: prevent public links resolving to actual location for CERN
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 4, 2023
1 parent de51096 commit 7b996d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-app-files/src/views/spaces/DriveResolver.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 7b996d7

Please sign in to comment.