diff --git a/src/helpers/guestName.js b/src/helpers/guestName.js index e88aa21e55..83cb6e340d 100644 --- a/src/helpers/guestName.js +++ b/src/helpers/guestName.js @@ -21,5 +21,9 @@ export function shouldAskForGuestName(mimetype, canWrite) { const noCurrentUser = !getCurrentUser() || getCurrentUser()?.uid === '' const isReadOnlyPDF = mimetype === 'application/pdf' && !canWrite + if (!canWrite) { + return false + } + return noLoggedInUser && noGuest && noCurrentUser && !isReadOnlyPDF }