Skip to content

Commit

Permalink
Merge pull request #3953 from nextcloud/backport/3832/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: Do not ask for guest name on read only pdfs
  • Loading branch information
juliusknorr authored Aug 28, 2024
2 parents 20741fa + 6cc0b0a commit 68b2f50
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 68b2f50

Please sign in to comment.