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 5b02db4 commit ab1b492
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 @@ -175,6 +175,14 @@ export default {
type: String,
default: null,
},
mime: {
type: String,
default: null,
},
permissions: {
type: String,
default: '',
},
isEmbedded: {
type: Boolean,
default: false,
Expand Down Expand Up @@ -284,7 +292,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 ab1b492

Please sign in to comment.