Skip to content

Commit

Permalink
Merge pull request #3952 from nextcloud/backport/3832/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: Do not ask for guest name on read only pdfs
  • Loading branch information
juliushaertl committed Aug 28, 2024
2 parents 5b02db4 + ab1b492 commit 6cbcac4
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 6cbcac4

Please sign in to comment.