Skip to content

Commit

Permalink
fix: Do not ask for guest name on read only pdfs
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl committed Aug 28, 2024
1 parent 20741fa commit 6cc0b0a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ export default {
type: String,
default: null,
},
mime: {
type: String,
default: null,
},
permissions: {
type: String,
default: '',
},
},
data() {
return {
Expand Down Expand Up @@ -264,7 +272,7 @@ export default {
}
this.postMessage.registerPostMessageHandler(this.postMessageHandler)
if (shouldAskForGuestName()) {
if (shouldAskForGuestName(this.mime, this.permissions?.includes('W'))) {
const { default: GuestNamePicker } = await import(
/* webpackChunkName: 'GuestNamePicker' */
'../components/GuestNamePicker.vue')
Expand Down

0 comments on commit 6cc0b0a

Please sign in to comment.