Skip to content

Commit

Permalink
Fix access in public links
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed May 30, 2022
1 parent cd2c43e commit d48bb47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ifc-js/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
requestAnimationFrame(this.animate)
},
addIFCModel: function () {
const isPublic = this.$route.params.contextRouteName === 'files-public-files'
const isPublic = this.$route.query["contextRouteName"] === 'files-public-files'
const ifcLoader = new IFCLoader()
// FIXME hack to load the wasm... should not be needed
ifcLoader.ifcManager.setWasmPath(
Expand Down
2 changes: 1 addition & 1 deletion jupyter/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
this.loadFile({
filePath: filePath,
client: this.$client,
public: this.$route.params.contextRouteName === 'files-public-files',
public: this.$route.query["contextRouteName"] === 'files-public-files',
publicLinkPassword: this.publicLinkPassword
})
},
Expand Down
2 changes: 1 addition & 1 deletion rootjs/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
}
},
created() {
this.isPublic = this.$route.params.contextRouteName === 'files-public-files'
this.isPublic = this.$route.query["contextRouteName"] === 'files-public-files'
const filePath = `/${this.$route.params.filePath.split('/').filter(Boolean).join('/')}`
this.url = getFileUrl(this.$client, this.isPublic, filePath)
this.viewMode = this.items[0]
Expand Down

0 comments on commit d48bb47

Please sign in to comment.