Skip to content

Commit e97fc70

Browse files
authored
Merge pull request #59896 from nextcloud/backport/59873/stable31
[stable31] fix(files_sharing): Restore password guard return for new public shares
2 parents 8c73ce0 + d9175f7 commit e97fc70

10 files changed

Lines changed: 136 additions & 269 deletions

apps/files_sharing/src/views/SharingDetailsTab.spec.ts

Lines changed: 127 additions & 261 deletions
Large diffs are not rendered by default.

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,9 @@ export default {
10061006
this.share.note = ''
10071007
}
10081008
if (this.isPasswordProtected) {
1009-
if (this.isNewShare && !this.isValidShareAttribute(this.share.newPassword)) {
1009+
if (this.isPublicShare && this.isNewShare && !this.isValidShareAttribute(this.share.newPassword)) {
10101010
this.passwordError = true
1011+
return
10111012
}
10121013
} else {
10131014
this.share.password = ''

dist/4442-4442.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/4442-4442.js.map.license

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/8967-8967.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/8967-8967.js.map.license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8967-8967.js.license

dist/files_sharing-files_sharing_tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)