Skip to content

Commit f80eaee

Browse files
authored
Merge pull request #22338 from nextcloud/backport/22322/stable18
[stable18] Only copy the link when updating a share or no password was forced
2 parents e1647c6 + 7fa81cb commit f80eaee

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/files_sharing/js/dist/files_sharing_tab.js

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

apps/files_sharing/js/dist/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.

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,11 @@ export default {
681681
// Execute the copy link method
682682
// freshly created share component
683683
// ! somehow does not works on firefox !
684-
component.copyLink()
684+
if (update || !this.config.enforcePasswordForPublicLink) {
685+
// Only copy the link when the password was not forced,
686+
// otherwise the user needs to copy/paste the password before finishing the share.
687+
component.copyLink()
688+
}
685689
686690
} catch ({ response }) {
687691
const message = response.data.ocs.meta.message

0 commit comments

Comments
 (0)