Skip to content

Commit

Permalink
Restrict external access again
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 27, 2023
1 parent 7b9cb01 commit 4b80f3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/Browse.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<main class="browse d-flex flex-column">
<b-alert v-if="!allowExternalAccess && isExternal" show>
<p>{{ $t('errors.noExternalAccess') }}</p>
</b-alert>
<ErrorAlert v-if="error" :dismissible="false" :url="url" :description="errorDescription" :id="errorId" />
<b-alert v-if="!allowExternalAccess && isExternal" show>{{ $t('errors.noExternalAccess') }}</b-alert>
<ErrorAlert v-else-if="error" :dismissible="false" :url="url" :description="errorDescription" :id="errorId" />
<Loading v-else-if="loading" stretch />
<component v-else :is="component" />
</main>
Expand Down Expand Up @@ -99,8 +97,10 @@ export default {
if (path === oldPath) {
return;
}
if (this.redirectLegacyUrls && await this.redirectLegacyUrl(path)) {
else if (!this.allowExternalAccess && this.isExternal) {
return;
}
else if (this.redirectLegacyUrls && await this.redirectLegacyUrl(path)) {
return;
}
Expand Down Expand Up @@ -136,4 +136,4 @@ export default {
}
}
};
</script>
</script>

0 comments on commit 4b80f3d

Please sign in to comment.