Skip to content

Commit

Permalink
Merge pull request #9651 from owncloud/public-link-resolving-eos
Browse files Browse the repository at this point in the history
feat: prevent public links resolving to actual location for CERN
  • Loading branch information
JammingBen authored Sep 5, 2023
2 parents 9cbee24 + aaaaf74 commit f8753de
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 @@ -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)
Expand Down

0 comments on commit f8753de

Please sign in to comment.