Skip to content

Commit d116c38

Browse files
committed
fix(files_sharing): sidebar link share password checkbox
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 6ba4ca3 commit d116c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ export default {
170170
if (this.passwordProtectedState !== undefined) {
171171
return this.passwordProtectedState
172172
}
173-
return this.share.newPassword !== undefined
174-
|| this.share.password !== undefined
173+
return typeof this.share.newPassword === 'string'
174+
|| typeof this.share.password === 'string'
175175
},
176176
async set(enabled) {
177177
if (enabled) {

0 commit comments

Comments
 (0)