Skip to content

Commit c4cdb9b

Browse files
authored
Merge pull request #59873 from nfebe/fix/save-twice-password-guard-public-shares
fix(files_sharing): Restore password guard return for new public shares
2 parents 96206dd + 47b7975 commit c4cdb9b

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
@@ -1091,8 +1091,9 @@ export default {
10911091
this.share.note = ''
10921092
}
10931093
if (this.isPasswordProtected) {
1094-
if (this.isNewShare && !this.isValidShareAttribute(this.share.newPassword)) {
1094+
if (this.isPublicShare && this.isNewShare && !this.isValidShareAttribute(this.share.newPassword)) {
10951095
this.passwordError = true
1096+
return
10961097
}
10971098
} else {
10981099
this.share.password = ''

dist/3796-3796.js.map

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

dist/3796-3796.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/5638-5638.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/5638-5638.js.map.license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5638-5638.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)